diff --git a/.github/workflows/jsBuilder.yml b/.github/workflows/jsBuilder.yml index 2a2821212..865cb3135 100644 --- a/.github/workflows/jsBuilder.yml +++ b/.github/workflows/jsBuilder.yml @@ -8,11 +8,11 @@ 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. + ref: ${{ github.head_ref }} - name: Install dependencies run: | @@ -33,13 +33,14 @@ 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 - - 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 }}