Skip to content

update-game-files #14662

update-game-files

update-game-files #14662

Workflow file for this run

name: 'update-game-files'
on:
schedule:
- cron: '0 * * * *' # '*/5 * * * *'
jobs:
check_hash:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.SYNERGISM }}
- name: clone Pseudo-Corp/SynergismOfficial
run: |
git clone https://github.com/Pseudo-Corp/SynergismOfficial
cd SynergismOfficial
git checkout gh-pages
cd ..
- name: update_files
run: |
rm -rf ./src
mkdir src
mv SynergismOfficial/Pictures SynergismOfficial/translations SynergismOfficial/dist SynergismOfficial/Synergism.css SynergismOfficial/favicon.ico SynergismOfficial/index.html ./src
git status --porcelain --untracked-files=no
if [[ `git status --porcelain --untracked-files=no` ]]; then
git config user.name "KhafraDev"
git config user.email "[email protected]"
git add src
git commit -m "Update Synergism"
git push
else
echo no changes
fi
- name: Cleanup
run: |
rm -rf SynergismOfficial