Skip to content

Commit 5edb680

Browse files
authored
fix: fail scheduled builds if pinned run is set (#15543)
1 parent 106e9f8 commit 5edb680

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/zip.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ jobs:
5656
outputs:
5757
should_package: ${{ steps.check.outputs.should_package }}
5858
steps:
59+
- name: Fail workflow if PINNED_RUN_ID is set on a schedule
60+
if: github.event_name == 'schedule' && env.PINNED_RUN_ID != ''
61+
run: |
62+
echo "ERROR: PINNED_RUN_ID is set for a scheduled run. Unset it to allow the workflow to proceed."
63+
exit 1
5964
- name: Check if packaging should be skipped
6065
id: check
6166
run: |

0 commit comments

Comments
 (0)