fix
This commit is contained in:
parent
fa18294e6e
commit
5799b022ff
1 changed files with 6 additions and 0 deletions
6
.github/workflows/docker-image.yml
vendored
6
.github/workflows/docker-image.yml
vendored
|
|
@ -12,6 +12,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Check new version
|
- name: Check new version
|
||||||
|
continue-on-error: true
|
||||||
id: status
|
id: status
|
||||||
run: |
|
run: |
|
||||||
LOCALAPPVER=($(cat sandstorm.version))
|
LOCALAPPVER=($(cat sandstorm.version))
|
||||||
|
|
@ -46,12 +47,17 @@ jobs:
|
||||||
git config --global user.email "${EMAIL}"
|
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
|
git remote set-url origin https://x-access-token:${{ secrets.GIT_TOKEN }}@github.com/AndrewMarchukov/insurgency-sandstorm-server-dockerize.git
|
||||||
- name: check for changes
|
- name: check for changes
|
||||||
|
if: steps.status.outcome == 'success'
|
||||||
run: git status
|
run: git status
|
||||||
- name: stage changed files
|
- name: stage changed files
|
||||||
|
if: steps.status.outcome == 'success'
|
||||||
run: git add sandstorm.version
|
run: git add sandstorm.version
|
||||||
- name: commit changed files
|
- name: commit changed files
|
||||||
|
if: steps.status.outcome == 'success'
|
||||||
run: git commit -m "Auto updating sandstorm.version"
|
run: git commit -m "Auto updating sandstorm.version"
|
||||||
- name: fetch from master
|
- name: fetch from master
|
||||||
|
if: steps.status.outcome == 'success'
|
||||||
run: git fetch origin master
|
run: git fetch origin master
|
||||||
- name: push code to master
|
- name: push code to master
|
||||||
|
if: steps.status.outcome == 'success'
|
||||||
run: git push origin HEAD:master
|
run: git push origin HEAD:master
|
||||||
Loading…
Reference in a new issue