Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
timosachsenberg authored Apr 17, 2024
1 parent 4b70296 commit 30fe698
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
TAG_NAME: ${{ steps.generate_tag_name.outputs.TAG_NAME }} # map step output to job output
steps:
- name: Generate tag name
id: generate_tag_name
Expand All @@ -27,6 +29,10 @@ jobs:
CMAKE_ARGS: -G"Visual Studio 17 2022" -A"x64"

steps:
- env:
TAG_NAME: ${{needs.prepare.outputs.TAG_NAME}} # get job variable TAG_NAME
run: echo "$TAG_NAME" # check if variable properly transferred between jobs

- uses: actions/checkout@v4
with:
path: contrib
Expand Down

0 comments on commit 30fe698

Please sign in to comment.