Skip to content

Commit 9a82bb4

Browse files
Attempted to fix etc files github action
1 parent 907748e commit 9a82bb4

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/wordlist-updater_fuzzing_etc_files.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: update etc files
1+
name: Wordlist Updater - etc files
22

33
# Controls when the workflow will run
44
on:
@@ -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

0 commit comments

Comments
 (0)