Update deploy.yml
This commit is contained in:
parent
8ba2e3a776
commit
5226a5102c
1 changed files with 6 additions and 3 deletions
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
|
@ -22,10 +22,13 @@ jobs:
|
|||
|
||||
- name: Update bot files
|
||||
run: |
|
||||
if [ ! -d "$DEPLOY_PATH/.git" ]; then
|
||||
git clone -b $GITHUB_REF_NAME https://github.com/ArcElewyn/Discord.git $DEPLOY_PATH
|
||||
else
|
||||
cd $DEPLOY_PATH
|
||||
if [ ! -d ".git" ]; then
|
||||
git init
|
||||
git remote add origin https://github.com/ArcElewyn/Discord.git
|
||||
git fetch origin $GITHUB_REF_NAME
|
||||
git reset --hard origin/$GITHUB_REF_NAME
|
||||
else
|
||||
git fetch origin $GITHUB_REF_NAME
|
||||
git reset --hard origin/$GITHUB_REF_NAME
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue