From 1a1a51c9bddfbf6c248c954aff21a74e1141d9c5 Mon Sep 17 00:00:00 2001 From: PinkDev1 <5990@protonmail.com> Date: Sat, 29 Jan 2022 05:08:32 +0000 Subject: [PATCH] Created github action for auto-updating combined_words.txt --- .../wordlist-updater_combined_words.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/wordlist-updater_combined_words.yml diff --git a/.github/workflows/wordlist-updater_combined_words.yml b/.github/workflows/wordlist-updater_combined_words.yml new file mode 100644 index 00000000..291a41a1 --- /dev/null +++ b/.github/workflows/wordlist-updater_combined_words.yml @@ -0,0 +1,34 @@ +name: Wordlist Updater - words + +on: + push: + paths: + - 'common.txt' + - 'raft-small-words.txt' + - 'raft-small-words-lowercase.txt' + - 'raft-medium-words-lowercase.txt' + - 'raft-medium-words.txt' + - 'big.txt' + - 'raft-large-words-lowercase.txt' + - 'raft-large-words.txt' + - 'test.txt' + +jobs: + update_combined_words: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - 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 + run: git remote set-url origin ${{ secrets.ssh }} + - name: Check for changes + run: git status + - name: Stage changed files + run: git add combined_words.txt + - 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