Skip to content

test parse action

test parse action #16

name: test parse action

Check failure on line 1 in .github/workflows/test-parse-action.yml

View workflow run for this annotation

GitHub Actions / test parse action

Invalid workflow file

The workflow is not valid. .github/workflows/test-parse-action.yml: Unexpected tag '!steps.parse.outputs.prerelease'
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/name@v1.2.3-alpha.1+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"