Skip to content

Commit c20c4b6

Browse files
committed
ci: plain release push and manual dependabot merges, drop auto-merge and its required check gate
1 parent 2b6cf99 commit c20c4b6

3 files changed

Lines changed: 0 additions & 55 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
pull_request:
55
push:
66
branches: [main]
7-
workflow_dispatch:
87

98
permissions:
109
contents: read
@@ -54,13 +53,3 @@ jobs:
5453
run: go test .
5554
env:
5655
ROXY_API_KEY: ${{ secrets.ROXY_API_KEY }}
57-
58-
# Single stable context for branch protection: matrix legs rename as Go versions rotate, this name never does.
59-
ci-ok:
60-
if: always()
61-
needs: [checks, test]
62-
runs-on: ubuntu-latest
63-
steps:
64-
- run: |
65-
test "${{ needs.checks.result }}" = "success"
66-
test "${{ needs.test.result }}" = "success"

.github/workflows/dependabot-auto-merge.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414

1515
permissions:
1616
contents: write
17-
actions: write
1817

1918
jobs:
2019
release:
@@ -68,29 +67,14 @@ jobs:
6867
6968
- name: Commit, tag, push
7069
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
71-
env:
72-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7370
run: |
7471
git config user.name "github-actions[bot]"
7572
git config user.email "github-actions[bot]@users.noreply.github.com"
7673
V=${{ steps.bump.outputs.version }}
7774
git add specs/openapi.json roxyapi.gen.go roxy.gen.go version.go README.md AGENTS.md docs/llms-full.txt
7875
git commit -m "release: v$V"
7976
git tag "v$V"
80-
# Protected main requires the ci-ok context green on every pushed SHA, and a direct push can never carry one. So park the commit on a temp branch, run the real CI there via workflow_dispatch (GITHUB_TOKEN pushes trigger no workflows on their own), and push to main only after it reports green.
81-
SHA=$(git rev-parse HEAD)
82-
git push --force origin "HEAD:refs/heads/release-checks"
83-
gh workflow run ci.yml --ref release-checks
84-
RUN_ID=""
85-
for _ in $(seq 1 24); do
86-
sleep 5
87-
RUN_ID=$(gh run list --workflow=ci.yml --branch=release-checks --limit 5 --json databaseId,headSha --jq "[.[] | select(.headSha == \"$SHA\")][0].databaseId // empty")
88-
[ -n "$RUN_ID" ] && break
89-
done
90-
[ -n "$RUN_ID" ] || { echo "dispatched CI run never appeared for $SHA"; exit 1; }
91-
gh run watch "$RUN_ID" --exit-status
9277
git push --follow-tags
93-
git push origin --delete release-checks || true
9478
9579
- name: Index new version on pkg.go.dev
9680
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)