mirror of
https://github.com/hashcat/hashcat.git
synced 2025-08-05 05:15:20 +00:00
Merge pull request #4352 from thatux/githubactions_docs
Automatically generate docs using Github actions 2
This commit is contained in:
commit
24434a31c6
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -130,13 +130,14 @@ jobs:
|
||||
env:
|
||||
SHARED: ${{ matrix.shared }}
|
||||
run: |
|
||||
git config user.name "hashcat-bot"
|
||||
git config user.email "hashcat-bot@hashcat.net"
|
||||
# https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-to-a-pr-using-the-built-in-token
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git add docs/hashcat-help.md
|
||||
git add docs/hashcat-example_hashes.md
|
||||
if ! git diff --cached --quiet; then
|
||||
git commit -m "Automatically udated docs/hashcat-help.md or docs/hashcat-example_hashes.md (by Github action)"
|
||||
git push origin HEAD:${{ github.head_ref }}
|
||||
git commit -m "Automatically updated docs/hashcat-help.md or docs/hashcat-example_hashes.md (by Github action)"
|
||||
git push
|
||||
else
|
||||
echo "No need to update docs/hashcat-help.md or docs/hashcat-example_hashes.md"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user