Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: Verify tag is on main
- name: Verify tag is on master
run: |
set -eu
git fetch origin main --quiet
if ! git merge-base --is-ancestor "$GITHUB_SHA" origin/main; then
echo "refusing to release: $GITHUB_SHA is not an ancestor of origin/main" >&2
git fetch origin master --quiet
if ! git merge-base --is-ancestor "$GITHUB_SHA" origin/master; then
echo "refusing to release: $GITHUB_SHA is not an ancestor of origin/master" >&2
exit 1
fi
Comment on lines 30 to 35

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- main
- master
Comment on lines 6 to +7

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- ".github/workflows/**"
push:
branches:
- main
- master
Comment on lines 8 to +9
paths:
- ".github/workflows/**"
workflow_dispatch: {}
Expand Down
Loading