Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
frasdav committed Dec 26, 2023
1 parent f1445b6 commit f0fbc3c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ on:
workflow_dispatch:

jobs:
preflight:
runs-on: ubuntu-latest
outputs:
is_pre_release: ${{ steps.get_version.outputs.is_pre_release }}
version: ${{ steps.get_version.outputs.version }}
steps:
- id: get_version
run: |
VERSION="${GITHUB_REF#refs/*/}"
if [[ "$VERSION" =~ ^v\d+\.\d+\.\d+$ ]]; then
IS_PRE_RELEASE="false"
else
IS_PRE_RELEASE="true"
fi
echo "is_pre_release=${IS_PRE_RELEASE}" >> "$GITHUB_OUTPUT"
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
build:
uses: ./.github/workflows/build.yml

Expand Down

0 comments on commit f0fbc3c

Please sign in to comment.