This commit is contained in:
AndrewMarchukov 2022-07-13 21:27:53 +04:00
parent 45f5b4a99c
commit f40cbabcfe
2 changed files with 15 additions and 0 deletions

View file

@ -24,6 +24,21 @@ jobs:
exit 1
fi
shell: bash
- name: login to git
run: |
git config --global user.name 'Andrew Marchukov'
git config --global user.email "${EMAIL}"
git remote set-url origin https://x-access-token:${{ secrets.GIT_TOKEN }}@github.com/AndrewMarchukov/insurgency-sandstorm-server-dockerize.git
- name: check for changes
run: git status
- name: stage changed files
run: git add sandstorm.version
- name: commit changed files
run: git commit -m "Auto updating sandstorm.version"
- name: fetch from master
run: git fetch origin master
- name: push code to master
run: git push origin HEAD:master
-
name: Login to DockerHub
if: steps.status.outcome == 'success'