From 00783547c4960348abab71fc80acd7f2b51a0fc1 Mon Sep 17 00:00:00 2001 From: akwanpdf Date: Tue, 16 Nov 2021 17:17:28 -0800 Subject: [PATCH 1/2] Try git push --- .github/workflows/jsBuilder.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/jsBuilder.yml b/.github/workflows/jsBuilder.yml index 2a2821212..33b5d5659 100644 --- a/.github/workflows/jsBuilder.yml +++ b/.github/workflows/jsBuilder.yml @@ -13,6 +13,7 @@ jobs: with: persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token. fetch-depth: 0 # otherwise, you will failed to push refs to dest repo. + ref: ${{ github.head_ref }} - name: Install dependencies run: | @@ -36,10 +37,11 @@ jobs: git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git commit -m "Updating JS files" -a || echo "No changes to commit" + git push - - name: Push changes - uses: ad-m/github-push-action@v0.6.0 - with: - force: true - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.head_ref }} + # - name: Push changes + # uses: ad-m/github-push-action@v0.6.0 + # with: + # force: true + # github_token: ${{ secrets.GITHUB_TOKEN }} + # branch: ${{ github.head_ref }} From e1546e4cec203e58966336d67d03ac28b85ea2ce Mon Sep 17 00:00:00 2001 From: akwanpdf Date: Tue, 16 Nov 2021 17:24:07 -0800 Subject: [PATCH 2/2] Try global config --- .github/workflows/jsBuilder.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/jsBuilder.yml b/.github/workflows/jsBuilder.yml index 33b5d5659..865cb3135 100644 --- a/.github/workflows/jsBuilder.yml +++ b/.github/workflows/jsBuilder.yml @@ -8,8 +8,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 + - uses: actions/checkout@v2 with: persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token. fetch-depth: 0 # otherwise, you will failed to push refs to dest repo. @@ -34,8 +33,8 @@ jobs: - name: Commit files run: | # Change last line to your preferred commit message (I like `chore: build js files`). - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" git commit -m "Updating JS files" -a || echo "No changes to commit" git push