From 6a4a9cd8b0b75923cf33ab91a100c31c449f16e9 Mon Sep 17 00:00:00 2001 From: Le Minh Tri Date: Sun, 26 Feb 2023 11:20:05 +0700 Subject: [PATCH] fix: change GitHub authentication token --- .github/workflows/deploy_to_netlify.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_to_netlify.yaml b/.github/workflows/deploy_to_netlify.yaml index 7f825de0..632d45ba 100644 --- a/.github/workflows/deploy_to_netlify.yaml +++ b/.github/workflows/deploy_to_netlify.yaml @@ -172,7 +172,7 @@ jobs: steps: - name: Delete the PR branch after merged into develop env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} GIT_REF_PATH: /repos/${{ github.repository }}/git/refs/heads/${{ github.head_ref }} run: | STATUS_CODE=$(gh api -i -H "Accept: application/vnd.github+json" $GIT_REF_PATH | head -1)