Skip to content

Commit

Permalink
set environment on right job
Browse files Browse the repository at this point in the history
  • Loading branch information
wwiv committed Dec 22, 2023
1 parent 9981b0c commit 99f4a54
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/wwiv-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ env:

jobs:
wwiv-build-number:
environment: WWIV59
runs-on: ubuntu-latest
outputs:
build_number: ${{ steps.buildnumber.outputs.build_number }}
Expand All @@ -23,18 +22,7 @@ jobs:
id: buildnumber
uses: onyxmueller/build-tag-number@v1
with:
token: ${{secrets.github_token}}

- name: Dump Vars
env:
VARS: ${{ toJson(vars) }}
RELEASE: ${{ vars.WWIV_RELEASE }}
shell: bash
run: |
echo "vars context: $VARS"
echo "explicit vars usage: ${{ vars.WWIV_RELEASE }}"
echo "Using in env: $RELEASE"
token: ${{secrets.github_token}}

- name: Check out repository code
uses: actions/checkout@v4
Expand Down Expand Up @@ -90,6 +78,8 @@ jobs:
archive_suffix: zip
fail-fast: false
runs-on: ${{ matrix.os }}
# TODO: Update this on new releases
environment: WWIV59
env:
BUILD_NUMBER: ${{needs.wwiv-build-number.outputs.build_number}}
WWIV_DISTRO: ${{ matrix.wwiv_distro }}
Expand All @@ -99,6 +89,18 @@ jobs:
WWIV_RELEASE_DIR: '${{ github.workspace }}/_build/release'

steps:

- name: Dump Vars
env:
VARS: ${{ toJson(vars) }}
RELEASE: ${{ vars.WWIV_RELEASE }}
shell: bash
run: |
echo "vars context: $VARS"
echo "explicit vars usage: ${{ vars.WWIV_RELEASE }}"
echo "Using in env: $RELEASE"
# Check it out again since now it's a new job.
- name: Check out repository code
uses: actions/checkout@v4
Expand Down

0 comments on commit 99f4a54

Please sign in to comment.