Update deploy.yml
This commit is contained in:
parent
43581a42b7
commit
49bfe40507
1 changed files with 2 additions and 1 deletions
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
|
|
||||||
- name: Update bot files
|
- name: Update bot files
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # token automatique fourni par GitHub
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory $DEPLOY_PATH
|
git config --global --add safe.directory $DEPLOY_PATH
|
||||||
cd $DEPLOY_PATH
|
cd $DEPLOY_PATH
|
||||||
|
|
@ -34,6 +34,7 @@ jobs:
|
||||||
else
|
else
|
||||||
git fetch origin $GITHUB_REF_NAME
|
git fetch origin $GITHUB_REF_NAME
|
||||||
git reset --hard origin/$GITHUB_REF_NAME
|
git reset --hard origin/$GITHUB_REF_NAME
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Restart bot
|
- name: Restart bot
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue