Update serwery.txt #26
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
name: Update serwery.txt | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- closed | |
schedule: | |
- cron: "0 0 * * 0" | |
jobs: | |
update-serwery: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Download serwery.txt | |
run: | | |
wget -O serwery.txt https://mikr.us/serwery.txt | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
if [[ "$(git status --porcelain)" != "" ]]; then | |
git add serwery.txt | |
git commit -m "Update serwery.txt" | |
git push | |
else | |
echo "Nothing to commit." | |
fi |