mirror of
https://github.com/danielmiessler/SecLists.git
synced 2025-06-20 09:50:58 +00:00
Merge pull request #822 from ItsIgnacioPortal/etc_files_github_action
Fixed etc files github action
This commit is contained in:
commit
65a2170f83
@ -1,4 +1,4 @@
|
|||||||
name: update etc files
|
name: Wordlist Updater - etc files
|
||||||
|
|
||||||
# Controls when the workflow will run
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
@ -20,10 +20,30 @@ jobs:
|
|||||||
- name: update wordlist
|
- name: update wordlist
|
||||||
run: cd .bin/etc-files-list-update/ && ./update.sh
|
run: cd .bin/etc-files-list-update/ && ./update.sh
|
||||||
|
|
||||||
- name: print diff
|
- name: Switching from HTTPS to SSH
|
||||||
run: git diff
|
run: git remote set-url origin git@github.com:danielmiessler/SecLists.git
|
||||||
|
|
||||||
# commit and push
|
- name: Stage changed files
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
run: git add Discovery/Variables/awesome-environment-variable-names.txt
|
||||||
|
|
||||||
|
- name: Configure git email and username
|
||||||
|
run: |
|
||||||
|
git config --local user.email "example@github.com"
|
||||||
|
git config --local user.name "GitHub Action"
|
||||||
|
|
||||||
|
- name: Check git status and save to output
|
||||||
|
id: myoutputs
|
||||||
|
run: |
|
||||||
|
git status
|
||||||
|
echo "::set-output name=gitstatus::$(git status --porcelain)"
|
||||||
|
|
||||||
|
- name: Commit changed files
|
||||||
|
if: steps.myoutputs.outputs.gitstatus != ''
|
||||||
|
run: git commit -m "[Github Action] Updated LFI-etc-files-of-all-linux-packages.txt"
|
||||||
|
|
||||||
|
- name: Push changes # push the output folder to your repo
|
||||||
|
if: steps.myoutputs.outputs.gitstatus != ''
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
commit_message: '[Github Action] Updated LFI-etc-files-of-all-linux-packages.txt'
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
force: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user