Skip to content

Commit 6f896c2

Browse files
Isengo1989github-actions[bot]bojanrajhkeulinho
authored
test: sorting workflow (#1752)
* test: workflow * test: workflow * test: workflow * test: workflow * test: workflow * chore: sort .wordlist.txt * test: workflow * chore: sort .wordlist.txt * test: workflow * chore: test * chore: sort .wordlist.txt * Update .github/workflows/wordlist.yml Co-authored-by: Bojan Rajh <[email protected]> * chore: test-removed-step * chore: sort .wordlist.txt * docs: Add docs for response headers in app scripts (#1736) * docs: Add docs for response headers in app scripts * Fix lint and spelling issues * chore: fix spellcheck * Adjust release version --------- Co-authored-by: Micha <[email protected]> * test: redirect workflow (#1751) * test: workflow * test: workflow * test: workflow comment * Update .github/workflows/redirect.yml Co-authored-by: Bojan Rajh <[email protected]> * Update .github/workflows/redirect.yml Co-authored-by: Bojan Rajh <[email protected]> --------- Co-authored-by: Bojan Rajh <[email protected]> * Reset .wordlist.txt to main branch version * chore: sort .wordlist.txt --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Bojan Rajh <[email protected]> Co-authored-by: Jonas Elfering <[email protected]>
1 parent f896c99 commit 6f896c2

File tree

3 files changed

+998
-969
lines changed

3 files changed

+998
-969
lines changed

.github/workflows/wordlist.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Sort Wordlist
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.wordlist.txt'
7+
8+
jobs:
9+
sort-wordlist:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Sort .wordlist.txt
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: |
22+
LC_ALL=C sort .wordlist.txt -o .wordlist.txt
23+
if ! git diff --quiet .wordlist.txt; then
24+
git config user.name "github-actions[bot]"
25+
git config user.email "github-actions[bot]@users.noreply.github.com"
26+
git add .wordlist.txt
27+
git commit -m "chore: sort .wordlist.txt"
28+
git push origin "HEAD:${{ github.head_ref }}"
29+
fi

0 commit comments

Comments
 (0)