Skip to content

Commit aa91385

Browse files
authored
Add new check for changed files (#1684)
**Link the Issue(s) this Pull Request is related to.** This is related to #1682 Re-implements checks for changed files in a PR without external dependencies
1 parent 60af895 commit aa91385

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.github/workflows/testing-pipeline.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ jobs:
8787
- name: Run Sphinx build
8888
run: ci/build_sphinx_docs.sh
8989

90-
# Action temporarily disabled due to security concerns on tj-actions/changed-files
91-
# check_changed_files:
92-
# name: Check Changed Files
93-
# runs-on: ubuntu-22.04
94-
# steps:
95-
# - uses: actions/checkout@v4
96-
# - name: Get Changed Files
97-
# id: get_changed_files
98-
# uses: tj-actions/changed-files@v41
99-
# - name: Check for Version Change
100-
# run: ci/check_changed_files.py ${{ steps.get_changed_files.outputs.modified_files }} ${{ steps.get_changed_files.outputs.deleted_files }}
90+
check_changed_files:
91+
name: Check Changed Files
92+
runs-on: ubuntu-22.04
93+
steps:
94+
- uses: actions/checkout@v4
95+
with:
96+
fetch-depth: 2
97+
- name: Check for Version Change
98+
run: |
99+
readarray -t changed_files < <(git diff --name-only HEAD^1 HEAD)
100+
ci/check_changed_files.py "${changed_files[@]}"
101101
102102
check_migration_files:
103103
name: Check Database Migration Files
@@ -107,14 +107,14 @@ jobs:
107107
- name: Check Migration Files
108108
run: ci/check_database_migrations.py
109109

110-
# Action temporarily disabled due to security concerns on tj-actions/changed-files
111-
# check_for_version_bump:
112-
# name: Check for Version Bump
113-
# runs-on: ubuntu-22.04
114-
# steps:
115-
# - uses: actions/checkout@v4
116-
# - name: Get Changed Files
117-
# id: get_changed_files
118-
# uses: tj-actions/changed-files@v41
119-
# - name: Check for Version Change
120-
# run: ci/check_version_bump.py ${{ steps.get_changed_files.outputs.all_changed_and_modified_files }}
110+
check_for_version_bump:
111+
name: Check for Version Bump
112+
runs-on: ubuntu-22.04
113+
steps:
114+
- uses: actions/checkout@v4
115+
with:
116+
fetch-depth: 2
117+
- name: Check for Version Change
118+
run: |
119+
readarray -t changed_files < <(git diff --name-only HEAD^1 HEAD)
120+
ci/check_version_bump.py "${changed_files[@]}"

0 commit comments

Comments
 (0)