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 30fe698 commit 5c1afed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch: # This allows you to manually trigger the workflow from the GitHub UI

jobs:
prepare:
prepare: # separate job to generate tag name exactly once based on the date
runs-on: ubuntu-latest
outputs:
TAG_NAME: ${{ steps.generate_tag_name.outputs.TAG_NAME }} # map step output to job output
Expand All @@ -29,9 +29,9 @@ 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
- name: Transfer variable TAG_NAME between jobs to be available as step output in this job
id: generate_tag_name
run: echo "TAG_NAME=${{needs.prepare.outputs.TAG_NAME}}" >> $GITHUB_OUTPUT

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

0 comments on commit 5c1afed

Please sign in to comment.