Add prep_fork.sh for removing worfklows unused in fork

This commit is contained in:
Yusuke Kuoka 2024-05-27 05:19:43 +00:00
parent 7a11d7270f
commit a340bfa790
1 changed files with 15 additions and 0 deletions

15
prep_fork.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
for f in arc-publish.yaml arc-{publish,validate}-chart.yaml \
arc-{release-runners,validate-runners,update-runners-scheduled}.yaml gha-{publish,validate}-chart.yaml \
global-run-{first-interaction,stale}.yaml; do
echo "Processing $f"
git rm .github/workflows/$f
done
git commit -m "Remove workflows unused in a forked repo"
# cherry-pick: Remove legacy-canary-build job from global-publish-canary.yaml as unused in a forked repo
git cherry-pick 842b16d71498a5f2a1fc17c0917372435464d49c