Skip to content

Commit

Permalink
replaced step1 id as needed for the output and added 2nd output to be…
Browse files Browse the repository at this point in the history
… used as condition on comment job
  • Loading branch information
DaveW-STFC committed Sep 19, 2024
1 parent 09a262e commit 0228901
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr_copied_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
name: Test changed-files
outputs:
check_result: ${{ steps.step1.outputs.result }}
any_changed: ${{steps.changed-files.outputs.any_changed}}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -34,6 +35,7 @@ jobs:
secrets/prod**
- name: Run step if any file(s) in the folder change
id: step1
if: steps.changed-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
Expand All @@ -51,7 +53,7 @@ jobs:
comment_pr:
needs: changed_files
if: changed_files.steps.changed-files.outputs.any_changed == 'true'
if: ${{needs.changed_files.outputs.any_changed}} == 'true'
runs-on: ubuntu-latest
steps:
- env:
Expand Down

0 comments on commit 0228901

Please sign in to comment.