Skip to content

Commit

Permalink
build: attempt to add versioning flow
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjo committed Oct 17, 2023
1 parent 9ba0f0f commit 9e71b81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/native-build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: native-build
on:
workflow_dispatch:
push:
release:
types: [created]
name: native-build
jobs:
determine-version:
name: determine-version
Expand All @@ -27,7 +27,7 @@ jobs:
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
- name: Determine version (branch)
if: env.BRANCH_NAME != 'master'
run: 'echo "PROJECT_VERSION=$(svu --prerelease ${{ env.BRANCH_NAME }}-alpha.$(git rev-list master.. --count) --build ${{ github.run_number }})" >> "$GITHUB_ENV"'
run: 'echo "PROJECT_VERSION=$(svu --pre-release ${{ env.BRANCH_NAME }}-alpha.$(git rev-list master.. --count) --build ${{ github.run_number }})" >> "$GITHUB_ENV"'
- name: Determine version
if: env.BRANCH_NAME == 'master'
run: 'echo "PROJECT_VERSION=$(svu)" >> "$GITHUB_ENV"'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/owasp.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: owasp
on:
workflow_dispatch:
push:
Expand Down

0 comments on commit 9e71b81

Please sign in to comment.