Skip to content

Commit

Permalink
dump build vars
Browse files Browse the repository at this point in the history
  • Loading branch information
devhawk committed Feb 2, 2024
1 parent 5167b62 commit 9525fc8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ on:
jobs:
build:
uses: ./.github/workflows/build.yml
dump-vars:
needs: build
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
DEV_BRANCH: ${{ needs.build.outputs.dev-branch }}
PRE_RELEASE: ${{ needs.build.outputs.pre-release }}
RELEASE_BRANCH: ${{ needs.build.outputs.release-branch }}
VERSION: ${{ needs.build.outputs.version }}
run: |
echo "version $VERSION"
echo " prerelease $PRE_RELEASE"
echo " dev branch $DEV_BRANCH"
echo " rel branch $VERSION"
16 changes: 15 additions & 1 deletion .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,18 @@ on:
jobs:
build:
uses: ./.github/workflows/build.yml

dump-vars:
needs: build
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
DEV_BRANCH: ${{ needs.build.outputs.dev-branch }}
PRE_RELEASE: ${{ needs.build.outputs.pre-release }}
RELEASE_BRANCH: ${{ needs.build.outputs.release-branch }}
VERSION: ${{ needs.build.outputs.version }}
run: |
echo "version $VERSION"
echo " prerelease $PRE_RELEASE"
echo " dev branch $DEV_BRANCH"
echo " rel branch $VERSION"

0 comments on commit 9525fc8

Please sign in to comment.