Last active
September 4, 2023 08:01
-
-
Save juliusknorr/1fac69b377852b3a17367bd82659a9d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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