diff --git a/.github/workflows/wordlist-updater_combined_words.yml b/.github/workflows/wordlist-updater_combined_words.yml index 786672e3..92217d3e 100644 --- a/.github/workflows/wordlist-updater_combined_words.yml +++ b/.github/workflows/wordlist-updater_combined_words.yml @@ -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