tangled
alpha
login
or
join now
dunkirk.sh
/
unduckified
5
fork
atom
A fast, local-first "redirection engine" for !bang users with a few extra features ^-^
5
fork
atom
overview
issues
pulls
pipelines
feat: stop cluttering the commit history
dunkirk.sh
9 months ago
7cd3dc74
751199b7
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+12
-2
1 changed file
expand all
collapse all
unified
split
.github
workflows
update-bangs.yaml
+12
-2
.github/workflows/update-bangs.yaml
···
41
41
git config --local user.email "github-actions[bot]@users.noreply.github.com"
42
42
git config --local user.name "github-actions[bot]"
43
43
git add src/bangs/bangs.json src/bangs/hashbang.ts
44
44
-
git commit -m "chore: update bangs.json" || exit 0
45
45
-
git push
44
44
+
45
45
+
# Check if the last commit was a bangs update
46
46
+
LAST_COMMIT_MSG=$(git log -1 --pretty=%B)
47
47
+
if [[ "$LAST_COMMIT_MSG" == "chore: update bangs.json" ]]; then
48
48
+
# If it was, amend the commit
49
49
+
git commit --amend -m "chore: update bangs.json" || exit 0
50
50
+
else
51
51
+
# Otherwise, create a new commit
52
52
+
git commit -m "chore: update bangs.json" || exit 0
53
53
+
fi
54
54
+
55
55
+
git push --force-with-lease
46
56
47
57
- name: Tailscale
48
58
uses: tailscale/github-action@v3