ci(fork): replace legacy non-executable and mutating diff script with safe summary
davoodmehraban89 committed
Oct 14, 2026 at 23:26 UTC
e447a1cf99842a11908d68606aa16b5ebe58ecbd
1 file changed
+11
-2
.github/workflows/action.yml
+11
-2
@@ -36,8 +36,17 @@ jobs:
36
with:
37
node-version: 22
38
39
- - name: Assert changed
40
- run: ./scripts/assert-changed-files-actions.sh "packages"
39
+ # The imported ZIP lost executable bits and the original helper assumes
40
+ # origin/master or origin/develop even though this fork uses main.
41
+ # Use a read-only changed-file summary; never merge/reset the CI checkout.
42
+ - name: List changed files safely
43
+ shell: bash
44
+ env:
45
+ BASE_REF: ${{ github.base_ref || 'main' }}
46
+ run: |
47
+ set -euo pipefail
48
+ git fetch --no-tags --quiet origin "$BASE_REF"
49
+ git diff --name-only "origin/$BASE_REF...HEAD" | sed -n '1,100p'
50
51
- name: Install dependencies
52
uses: ./.github/actions/cache-deps