@@ -69,33 +69,28 @@ jobs:
6969 repository : dfinity/public-workflows
7070 path : public-workflows
7171
72- # Then switch back to this repository to make sure it's run from current
73- - name : Checkout Original Repository
74- uses : actions/checkout@v4
75- with :
76- path : current-repo # need to specify another path to avoid overwriting the first checkout
77- repository : ${{ github.event.pull_request.head.repo.full_name }}
78- ref : ${{ github.head_ref }}
79- fetch-depth : 256
80-
8172 - name : Python Setup
8273 uses : ./public-workflows/.github/workflows/python-setup
8374 with :
8475 working-directory : public-workflows
8576
77+ - name : Get changed files
78+ id : changed-files
79+ uses : tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
80+ with :
81+ use_rest_api : ' true'
82+
8683 - name : Check External Changes
8784 id : check-external-changes
8885 run : |
8986 export PYTHONPATH="$PWD/public-workflows/reusable_workflows/"
9087 python public-workflows/reusable_workflows/repo_policies/check_external_changes.py
9188 shell : bash
9289 env :
90+ CHANGED_FILES : ${{ steps.changed-files.outputs.all_changed_files }}
9391 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }} # no actual token stored, read-only permissions
9492 ORG : ${{ github.repository_owner }}
9593 REPO : ${{ github.event.repository.name }}
96- MERGE_BASE_SHA : ${{ github.event.pull_request.base.sha }}
97- BRANCH_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
98- REPO_PATH : current-repo
9994
10095 - name : Add PR Comment
10196 uses : actions/github-script@v7
0 commit comments