From f5b0c623a5d5dac5fe9117ec001daf8965e623c3 Mon Sep 17 00:00:00 2001 From: Azis Alvriyanto Date: Sat, 28 Dec 2024 23:38:56 +0700 Subject: [PATCH] ci: update github token variable name --- .github/workflows/continuous-integration.yml | 6 +++--- .github/workflows/static-analysis.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 73eda828..161ca0c0 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -54,7 +54,7 @@ jobs: run: | if git ls-remote --exit-code --heads origin ${{ vars.ARCHIVE_BRANCH_NAME }}; then echo "Branch deleted successfully" - git push https://x-access-token:${{ secrets.WORKFLOW_GITHUB_TOKEN }}@github.com/${{ github.repository }} --delete ${{ vars.ARCHIVE_BRANCH_NAME }} + git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} --delete ${{ vars.ARCHIVE_BRANCH_NAME }} else echo "Branch does not exist" fi @@ -116,7 +116,7 @@ jobs: if: env.CHANGES_EXIST == 'true' uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.WORKFLOW_GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ vars.ARCHIVE_BRANCH_NAME }} force: true @@ -195,6 +195,6 @@ jobs: if: env.CHANGES_EXIST == 'true' uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.WORKFLOW_GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} branch: main force: true diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index d2b51ecd..6d8cf1e8 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5