Skip to content

Commit cf43686

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

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
@@ -46,11 +45,3 @@ jobs:
4645

4746
- name: Test
4847
run: vendor/bin/pest --no-coverage
49-
50-
# Single stable context for branch protection: matrix legs rename as PHP versions rotate, this name never does.
51-
ci-ok:
52-
if: always()
53-
needs: [test]
54-
runs-on: ubuntu-latest
55-
steps:
56-
- 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
@@ -17,7 +17,6 @@ jobs:
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: write
20-
actions: write
2120
steps:
2221
- uses: actions/checkout@v7
2322
with:
@@ -79,29 +78,14 @@ jobs:
7978
8079
- name: Commit, tag, push
8180
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
82-
env:
83-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8481
run: |
8582
git config user.name "github-actions[bot]"
8683
git config user.email "github-actions[bot]@users.noreply.github.com"
8784
VERSION="${{ steps.bump.outputs.version }}"
8885
git add composer.json package.json src/Version.php specs/openapi.json src/Roxy.php src/Generated tests/Generated README.md AGENTS.md
8986
git commit -m "release: v$VERSION"
9087
git tag "v$VERSION"
91-
# 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.
92-
SHA=$(git rev-parse HEAD)
93-
git push --force origin "HEAD:refs/heads/release-checks"
94-
gh workflow run ci.yml --ref release-checks
95-
RUN_ID=""
96-
for _ in $(seq 1 24); do
97-
sleep 5
98-
RUN_ID=$(gh run list --workflow=ci.yml --branch=release-checks --limit 5 --json databaseId,headSha --jq "[.[] | select(.headSha == \"$SHA\")][0].databaseId // empty")
99-
[ -n "$RUN_ID" ] && break
100-
done
101-
[ -n "$RUN_ID" ] || { echo "dispatched CI run never appeared for $SHA"; exit 1; }
102-
gh run watch "$RUN_ID" --exit-status
10388
git push --follow-tags
104-
git push origin --delete release-checks || true
10589
10690
- name: Create GitHub release
10791
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)