Fixed github action

it failed previously because no email and username were provided
This commit is contained in:
PinkDev1 2022-01-29 05:33:06 +00:00 committed by GitHub
parent 2d6d06d534
commit ea50d621e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ jobs:
update_combined_words:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Generate combined_words.txt
run: cd Discovery/Web-Content/ && cat common.txt raft-small-words* raft-medium-words* big.txt raft-large-words* | awk '! seen[$0]++' > combined_words.txt
- name: Switching from HTTPS to SSH
@ -26,9 +26,14 @@ jobs:
run: git status
- name: Stage changed files
run: git add Discovery/Web-Content/combined_words.txt
- name: Configure git email and username
run: |
git config --local user.email "example@github.com"
git config --local user.name "GitHub Action"
- name: Commit changed files
run: git commit -m "[Github Action] Updated combined_words.txt"
- name: Fetch from master
run: git fetch origin master
- name: Push code to master
run: git push origin HEAD:master
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true