Skip to content

simplify logic

simplify logic #1

name: Get next available version

Check failure on line 1 in .github/workflows/_get-version-workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/_get-version-workflow.yml

Invalid workflow file

`get-version` is not a valid event name
on:
workflow_call:
outputs:
version:
description: "The next unused version to use"
value: ${{ jobs.get-version.outputs.version }}
get-version:
name: Get application version for this revision
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version
id: get-version
run: |
version=$(./ci/get_version.sh full | xargs)-$(git rev-parse HEAD | xargs)
echo "version=${version}" > $GITHUB_OUTPUT
- name: Print version
run: echo ::notice title=Version::${{ steps.get-version.outputs.version }}