Skip to content

Commit

Permalink
Correctly added token for running commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Struck713 committed Jan 21, 2024
1 parent 36fbb5e commit 749013e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
pm2 restart barbarian-bot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 749013e

Please sign in to comment.