We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0a18ec commit 7c3603cCopy full SHA for 7c3603c
2 files changed
.github/scripts/removed-slices/removed-slices
@@ -24,7 +24,7 @@ oldref="$1"
24
curref="$(git rev-parse --short HEAD)"
25
exitcode=0
26
27
-# Check for deleted or renamed slice definition files and error out early.
+# Check for deleted or renamed slice definition files.
28
deleted_files=()
29
while IFS= read -r f; do
30
deleted_files+=( "$f" )
.github/workflows/removed-slices.yaml
@@ -41,4 +41,7 @@ jobs:
41
- name: "Check for removed slices"
42
run: |
43
ln -s "${{ env.files_main }}/.github/scripts/removed-slices/removed-slices" .
44
+ # For pull request events, use github.base_ref as the old git ref.
45
+ # For push events, the github.event.before value contains the SHA of
46
+ # the most recent commit on ref before the push.
47
./removed-slices "${{ github.base_ref || github.event.before }}"
0 commit comments