Skip to content

Commit

Permalink
Update example.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon authored Oct 8, 2024
1 parent dd8e3b0 commit 89add0c
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@ jobs:
- run: |
echo github.job: ${{ github.job }}
job-with-real-long-id-abcdefghijklmnopyrstuvwxyz-abcdefghijklmnopyrstuvwxyz-abcdefghijklmnopyrstuvwxyz:
runs-on: ubuntu-latest
steps:
- run: env | grep GITHUB_

- uses: actions/checkout@v4

- uses: ./

- run: |
echo github.job: ${{ github.job }}
job-with-environment:
runs-on: ubuntu-latest
environment: test
Expand Down Expand Up @@ -97,3 +85,13 @@ jobs:
# IMPORTANT ensure first value match the surrounding job name
# IMPORTANT If the surrounding workflow is a reusable workflow itself, append ', ${{ inputs.workflow-context }}'
workflow-context: job-with-reusable-workflow-nested, ${{ toJSON(matrix) }}

job-with-real-long-id-abcdefghijklmnopyrstuvwxyz-abcdefghijklmnopyrstuvwxyz-abcdefghijklmnopyrstuv:
strategy:
matrix:
node-version: [ 22.x, 20.x ]
uses: ./.github/workflows/example-reusable.yml
with:
# IMPORTANT ensure first value match the surrounding job name
# IMPORTANT If the surrounding workflow is a reusable workflow itself, append ', ${{ inputs.workflow-context }}'
workflow-context: job-with-real-long-id-abcdefghijklmnopyrstuvwxyz-abcdefghijklmnopyrstuvwxyz-abcdefghijklmnopyrstuv, ${{ toJSON(matrix) }}

0 comments on commit 89add0c

Please sign in to comment.