File tree Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Original file line number Diff line number Diff line change 1- name : update etc files
1+ name : Wordlist Updater - etc files
22
33# Controls when the workflow will run
44on :
@@ -20,10 +20,30 @@ jobs:
2020 - name : update wordlist
2121 run : cd .bin/etc-files-list-update/ && ./update.sh
2222
23- - name : print diff
24- run : git diff
23+ - name : Switching from HTTPS to SSH
24+ run :
git remote set-url origin [email protected] :danielmiessler/SecLists.git 2525
26- # commit and push
27- - uses : stefanzweifel/git-auto-commit-action@v4
26+ - name : Stage changed files
27+ run : git add Discovery/Variables/awesome-environment-variable-names.txt
28+
29+ - name : Configure git email and username
30+ run : |
31+ git config --local user.email "[email protected] " 32+ git config --local user.name "GitHub Action"
33+
34+ - name : Check git status and save to output
35+ id : myoutputs
36+ run : |
37+ git status
38+ echo "::set-output name=gitstatus::$(git status --porcelain)"
39+
40+ - name : Commit changed files
41+ if : steps.myoutputs.outputs.gitstatus != ''
42+ run : git commit -m "[Github Action] Updated LFI-etc-files-of-all-linux-packages.txt"
43+
44+ - name : Push changes # push the output folder to your repo
45+ if : steps.myoutputs.outputs.gitstatus != ''
46+ uses : ad-m/github-push-action@master
2847 with :
29- commit_message : ' [Github Action] Updated LFI-etc-files-of-all-linux-packages.txt'
48+ github_token : ${{ secrets.GITHUB_TOKEN }}
49+ force : true
You can’t perform that action at this time.
0 commit comments