Skip to content

Commit 9c46a3a

Browse files
committed
fix(common-files/building-system-patches): never use CI reuse on PRs that modify tur-on-device packages
- See #2044 (comment)
1 parent 3bcdba8 commit 9c46a3a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

common-files/building-system-patches/0008-allow-reuse-pr.patch

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@
2727
echo "${PR_COMMIT_BODY}"
2828
echo "::endgroup::"
2929

30+
@@ -161,6 +161,10 @@ readarray -t COMMITS < <(git rev-list --no-merges "$OLD_COMMIT..$HEAD_COMMIT" ||
31+
git diff-tree --name-only -r "$PR_MERGE_BASE..$OLD_COMMIT"
32+
) || :
33+
34+
+ if [[ $(git diff-tree --name-only -r "$OLD_COMMIT..$HEAD_COMMIT") =~ .*tur-on-device.* ]]; then
35+
+ infoexit "This PR modifies tur-on-device packages, not performing CI fast path"
36+
+ fi
37+
+
38+
# obtain list of all packages changed by this PR
39+
readarray -t PR_CHANGED_PACKAGES < <(
40+
git diff-tree --name-only -r "$OLD_COMMIT..$HEAD_COMMIT" \
3041
@@ -206,7 +206,7 @@
3142
# The same commit can be used in more than one PR or even push
3243
WORKFLOW_PR_QUERY="

0 commit comments

Comments
 (0)