mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 23:35:41 +03:00
Automate blacklist updater / changes
This commit is contained in:
6
.github/workflows/bl.yml
vendored
6
.github/workflows/bl.yml
vendored
@@ -47,8 +47,10 @@ jobs:
|
|||||||
git config --global user.name "${{ env.REPO_OWNER }}"
|
git config --global user.name "${{ env.REPO_OWNER }}"
|
||||||
git config --global user.email "${{ env.REPO_OWNER }}@github.com"
|
git config --global user.email "${{ env.REPO_OWNER }}@github.com"
|
||||||
git add blacklist*txt
|
git add blacklist*txt
|
||||||
git diff --staged --exit-code || echo "No changes to commit"
|
git diff --staged --quiet || CHANGED=true
|
||||||
if [ $? -ne 0 ]; then
|
if [ "$CHANGED" = true ]; then
|
||||||
git commit -m "Update $timestamp"
|
git commit -m "Update $timestamp"
|
||||||
git push https://${{ env.GH_PAT }}@github.com/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}.git
|
git push https://${{ env.GH_PAT }}@github.com/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}.git
|
||||||
|
else
|
||||||
|
echo "No changes to commit"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user