diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2b5bae0..8b8c6f3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,21 +18,21 @@ jobs: else echo "Unsupported branch" exit 1 - fi - name: Update bot files + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # token automatique fourni par GitHub run: | git config --global --add safe.directory $DEPLOY_PATH cd $DEPLOY_PATH if [ ! -d ".git" ]; then git init - git remote add origin https://github.com/ArcElewyn/Discord.git + git remote add origin https://x-access-token:$GITHUB_TOKEN@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 - name: Restart bot run: |