From 14f777b29985aedc831e8d8dc8e5095b18e5eb55 Mon Sep 17 00:00:00 2001 From: Struck713 Date: Sun, 21 Jan 2024 04:06:21 -0500 Subject: [PATCH] Updated actions workflow to not include checkout@v4 --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ae9fd6d..587ef31 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,13 +5,12 @@ jobs: name: Deploy to server runs-on: self-hosted steps: - - uses: actions/checkout@v4 - name: Pull and build run: | cd ~/barbarian-bot/ - git fetch + git fetch "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_ACTOR}/${GITHUB_REPOSITORY}.git" git checkout master - git pull + git pull "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_ACTOR}/${GITHUB_REPOSITORY}.git" npm install npm run build pm2 restart barbarian-bot \ No newline at end of file