Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/jsBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}