chore: update workflow-run-example.yml (#1921)
This commit is contained in:
parent
ea35f7ea00
commit
9299962a59
27
.github/workflows/workflow-run-example.yml
vendored
27
.github/workflows/workflow-run-example.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: Workflow Run Example
|
name: Workflow Run Example
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: [Matrix Test]
|
workflows: [Matrix Example]
|
||||||
types: [completed]
|
types: [completed]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@ -12,9 +12,30 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
steps:
|
steps:
|
||||||
- run: echo 'The triggering workflow passed'
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get changed files
|
||||||
|
id: changed-files
|
||||||
|
uses: ./
|
||||||
|
|
||||||
|
- name: Echo list of changed files on success
|
||||||
|
run: |
|
||||||
|
echo "Changed files on success:"
|
||||||
|
echo "${{ steps.changed-files.outputs.all_changed_files }}"
|
||||||
|
|
||||||
on-failure:
|
on-failure:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
steps:
|
steps:
|
||||||
- run: echo 'The triggering workflow failed'
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get changed files
|
||||||
|
id: changed-files
|
||||||
|
uses: ./
|
||||||
|
|
||||||
|
- name: Echo list of changed files on failure
|
||||||
|
run: |
|
||||||
|
echo "Changed files on failure:"
|
||||||
|
echo "${{ steps.changed-files.outputs.all_changed_files }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user