From a4c6e3e3306874d35f9da7bb315bd67966ce6b35 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 16 Aug 2024 11:06:34 -0500 Subject: [PATCH] fixup! Fallback on using job key --- .github/workflows/integration-tests.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index 8cf9eb5..b5fda6e 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -19,7 +19,7 @@ jobs: run: '[[ "${output}" == "${expected}" ]] || exit 1' env: output: ${{ steps.job.outputs.name }} - expected: test-default-name + expected: ${{ github.job }} - name: Test job ID run: | [[ "${job_id}" =~ ^[0-9]+$ ]] || exit 1 @@ -74,7 +74,22 @@ jobs: run: '[[ "${output}" == "${expected}" ]] || exit 1' env: output: ${{ steps.job.outputs.name }} - expected: null + expected: ${{ github.job }} + + test-false-name: + name: false + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - uses: ./ + id: job + - name: Test job name + run: '[[ "${output}" == "${expected}" ]] || exit 1' + env: + output: ${{ steps.job.outputs.name }} + expected: ${{ github.job }} test-matrix: name: Matrix