Skip to content

Commit 4a787be

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

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
@@ -48,11 +47,3 @@ jobs:
4847
run: dotnet test -c Release --no-build
4948
env:
5049
ROXY_API_KEY: ${{ secrets.ROXY_API_KEY }}
51-
52-
# Single stable context for branch protection, uniform across all SDK repos even where the CI job is not matrixed.
53-
ci-ok:
54-
if: always()
55-
needs: [build]
56-
runs-on: ubuntu-latest
57-
steps:
58-
- run: test "${{ needs.build.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:
@@ -96,29 +95,14 @@ jobs:
9695

9796
- name: Commit, tag, push
9897
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
99-
env:
100-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10198
run: |
10299
git config user.name "github-actions[bot]"
103100
git config user.email "github-actions[bot]@users.noreply.github.com"
104101
VERSION=${{ steps.bump.outputs.version }}
105102
git add specs/openapi.json src/ README.md AGENTS.md docs/llms-full.txt tests/RoxyApi.Tests/Generated
106103
git commit -m "release: v$VERSION"
107104
git tag "v$VERSION"
108-
# 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.
109-
SHA=$(git rev-parse HEAD)
110-
git push --force origin "HEAD:refs/heads/release-checks"
111-
gh workflow run ci.yml --ref release-checks
112-
RUN_ID=""
113-
for _ in $(seq 1 24); do
114-
sleep 5
115-
RUN_ID=$(gh run list --workflow=ci.yml --branch=release-checks --limit 5 --json databaseId,headSha --jq "[.[] | select(.headSha == \"$SHA\")][0].databaseId // empty")
116-
[ -n "$RUN_ID" ] && break
117-
done
118-
[ -n "$RUN_ID" ] || { echo "dispatched CI run never appeared for $SHA"; exit 1; }
119-
gh run watch "$RUN_ID" --exit-status
120105
git push --follow-tags
121-
git push origin --delete release-checks || true
122106
123107
- name: Create GitHub release
124108
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)