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