Skip to content

Commit 9300ec3

Browse files
committed
ci: plain release push and manual dependabot merges, drop auto-merge and its required check gate
1 parent 9f69a36 commit 9300ec3

3 files changed

Lines changed: 0 additions & 53 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 9 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
@@ -43,11 +42,3 @@ jobs:
4342

4443
- name: Test
4544
run: uv run pytest tests/test_factory.py -v
46-
47-
# Single stable context for branch protection: matrix legs rename as Python versions rotate, this name never does.
48-
ci-ok:
49-
if: always()
50-
needs: [test]
51-
runs-on: ubuntu-latest
52-
steps:
53-
- run: 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
@@ -19,7 +19,6 @@ jobs:
1919
permissions:
2020
contents: write
2121
id-token: write
22-
actions: write
2322
steps:
2423
- uses: actions/checkout@v7
2524
with:
@@ -93,8 +92,6 @@ jobs:
9392

9493
- name: Commit, tag, push
9594
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
96-
env:
97-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9895
run: |
9996
git config user.name "github-actions[bot]"
10097
git config user.email "github-actions[bot]@users.noreply.github.com"
@@ -103,20 +100,7 @@ jobs:
103100
git add pyproject.toml uv.lock src/roxy_sdk/version.py specs/openapi.json src/roxy_sdk/factory.py
104101
git commit -m "release: v$VERSION"
105102
git tag "v$VERSION"
106-
# 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.
107-
SHA=$(git rev-parse HEAD)
108-
git push --force origin "HEAD:refs/heads/release-checks"
109-
gh workflow run ci.yml --ref release-checks
110-
RUN_ID=""
111-
for _ in $(seq 1 24); do
112-
sleep 5
113-
RUN_ID=$(gh run list --workflow=ci.yml --branch=release-checks --limit 5 --json databaseId,headSha --jq "[.[] | select(.headSha == \"$SHA\")][0].databaseId // empty")
114-
[ -n "$RUN_ID" ] && break
115-
done
116-
[ -n "$RUN_ID" ] || { echo "dispatched CI run never appeared for $SHA"; exit 1; }
117-
gh run watch "$RUN_ID" --exit-status
118103
git push --follow-tags
119-
git push origin --delete release-checks || true
120104
121105
- name: Create GitHub release
122106
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)