Skip to content

Instantly share code, notes, and snippets.

@juliusknorr
Last active September 4, 2023 08:01
Show Gist options
  • Save juliusknorr/1fac69b377852b3a17367bd82659a9d9 to your computer and use it in GitHub Desktop.
Save juliusknorr/1fac69b377852b3a17367bd82659a9d9 to your computer and use it in GitHub Desktop.
#!/bin/bash
for f in ~/repos/nextcloud/.github/workflow-templates/*.yml
do
filename=$(basename "$f")
target="./.github/workflows/$filename"
if test -f "$target"; then
echo "$target exists, copy new content"
cp $f $target
fi
done
echo "Use git add -p and then commit:"
echo "git commit -m 'ci: Update workflows from templates' --signoff"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment