Skip to content

Commit cb02b59

Browse files
committed
fix(ci): switch club calendar workflow to direct main bump with owner PAT
Made-with: Cursor
1 parent a43e5f0 commit cb02b59

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

.github/workflows/club-calendar-version.yml

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

1515
permissions:
1616
contents: write
17-
pull-requests: write
1817

1918
concurrency:
2019
group: club-calendar-version
@@ -31,6 +30,7 @@ jobs:
3130
with:
3231
fetch-depth: 0
3332
submodules: recursive
33+
token: ${{ secrets.OWNER_PAT }}
3434

3535
- name: Setup Node.js
3636
uses: actions/setup-node@v4
@@ -42,30 +42,22 @@ jobs:
4242
id: bump
4343
run: node scripts/sync-club-calendar-version.mjs
4444

45-
- name: Create version bump pull request
45+
- name: Commit version bump
4646
if: steps.bump.outputs.changed == 'true'
47-
uses: peter-evans/create-pull-request@v6
48-
with:
49-
token: ${{ secrets.GITHUB_TOKEN }}
50-
commit-message: "chore(version): club calendar ${{ steps.bump.outputs.version }}"
51-
title: "chore(version): club calendar ${{ steps.bump.outputs.version }}"
52-
body: |
53-
Automated club calendar version sync.
54-
55-
- Updates `package.json`, `app.json`, and `package-lock.json`
56-
- Computed by `scripts/sync-club-calendar-version.mjs`
57-
branch: automation/club-calendar-version
58-
base: main
59-
labels: automated
60-
delete-branch: true
47+
run: |
48+
git config user.name "github-actions[bot]"
49+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
50+
git add package.json app.json package-lock.json
51+
git commit -m "chore(version): club calendar ${{ steps.bump.outputs.version }}"
52+
git push origin HEAD:main
6153
6254
release:
6355
if: "${{ github.event_name == 'push' && github.event.head_commit != null && contains(github.event.head_commit.message, 'chore(version): club calendar') }}"
6456
runs-on: ubuntu-latest
6557
steps:
6658
- name: Create GitHub Release
6759
env:
68-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
GH_TOKEN: ${{ secrets.OWNER_PAT }}
6961
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
7062
run: |
7163
VERSION="$(echo "$COMMIT_MESSAGE" | sed -E 's/^chore\(version\): club calendar ([0-9]+\.[0-9]+\.[0-9]+).*$/\1/')"

0 commit comments

Comments
 (0)