From 749013ebaef0f0a154f311cf1cf535a23eb23759 Mon Sep 17 00:00:00 2001 From: Struck713 Date: Sun, 21 Jan 2024 04:12:16 -0500 Subject: [PATCH] Correctly added token for running commands --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55b19a4..d0bd6c2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,11 @@ jobs: - name: Pull and build run: | cd ~/barbarian-bot/ - echo ${GITHUB_ACTOR} - echo ${GITHUB_TOKEN} git fetch "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" git checkout master git pull "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" npm install npm run build - pm2 restart barbarian-bot \ No newline at end of file + pm2 restart barbarian-bot + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file