Add action to commit README for gh
All checks were successful
Simple Mirror to GitHub / mirror (push) Successful in 7s
All checks were successful
Simple Mirror to GitHub / mirror (push) Successful in 7s
This commit is contained in:
parent
d85761e024
commit
2a35f5e42c
@ -45,6 +45,14 @@ jobs:
|
|||||||
*This mirror is automatically updated when changes are pushed to the master branch.*
|
*This mirror is automatically updated when changes are pushed to the master branch.*
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Stage and commit the new README
|
||||||
|
git add README.md
|
||||||
|
if git diff --staged --quiet; then
|
||||||
|
echo "No changes to README, skipping commit"
|
||||||
|
else
|
||||||
|
git commit -m "Update README for GitHub mirror"
|
||||||
|
fi
|
||||||
|
|
||||||
# Add remote
|
# Add remote
|
||||||
git remote add github https://${{ secrets.GH_TOKEN }}@github.com/xbazzi/fastinahurry.git
|
git remote add github https://${{ secrets.GH_TOKEN }}@github.com/xbazzi/fastinahurry.git
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user