From c391e91149177691be6053675ef19cc5f136d050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl?= <159157671+ArcElewyn@users.noreply.github.com> Date: Thu, 28 Aug 2025 14:09:36 +0200 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: |