-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.07 KB
/
test-parse-action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: test parse action
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Parse ref
uses: ./.github/actions/parse-ref-semver
id: parse
with:
ref: refs/tags/@scope/[email protected]+build.123
- name: Print outputs
run: |
echo "ref=${{ steps.parse.outputs.ref }}"
echo "matched=${{ steps.parse.outputs.matched }}"
echo "scope=${{ steps.parse.outputs.scope }}"
echo "name=${{ steps.parse.outputs.name }}"
echo "major=${{ steps.parse.outputs.major }}"
echo "minor=${{ steps.parse.outputs.minor }}"
echo "patch=${{ steps.parse.outputs.patch }}"
echo "prerelease=${{ steps.parse.outputs.prerelease }}"
echo "build=${{ steps.parse.outputs.build }}"
- name: publish next
if: steps.parse.outputs.prerelease
run: echo "publish next"
- name: publish latest
if: !steps.parse.outputs.prerelease
run: echo "publish latest"