Skip to content

Commit

Permalink
chore(ci-wait-for-all): Use Ana06/get-changed-files to compare PRs …
Browse files Browse the repository at this point in the history
…with `main` (#3158)



#### Summary

~~It seems this action fails to use the correct `sha` of the PR if the PR branch is not up to date. This should fix it~~

Use an action that uses the GitHub API as we need a three dots diff

<!--
  • Loading branch information
erezrokah committed Oct 20, 2022
1 parent 102f5f9 commit c07fb4c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/wait_for_required_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v32
uses: Ana06/get-changed-files@v2.1.0
- uses: actions/github-script@v6
env:
FILES: ${{ steps.changed-files.outputs.all_changed_files }}
FILES: ${{ steps.changed-files.outputs.all }}
with:
script: |
const files = process.env.FILES.split(' ')
Expand Down

0 comments on commit c07fb4c

Please sign in to comment.