Skip to content

Commit 18b31b3

Browse files
authored
ci: auto-commit release assets on tags (#13)
## Summary - load a PAT via 1Password so the workflow has push rights during release-tag runs - auto-commit step now uses that PAT plus explicit release-bot author info to push version bumps, chart docs, and README updates back to main when a v* tag is pushed ## Testing - bun check - bun run typecheck - bun test
1 parent fb81fb0 commit 18b31b3

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/qa.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
SLACK_CHANNEL_ID: op://platform/slack-bot/SLACK_CHANNEL_ID
6161
HARBOR_USER: op://platform/harbor/username
6262
HARBOR_PASS: op://platform/harbor/password
63+
PAT_TOKEN: op://platform/github-commit-pat/credential
6364

6465
# Label QA as running and notify Slack (only for non-draft PRs)
6566
- name: Label QA as running
@@ -127,6 +128,18 @@ jobs:
127128
if: github.event_name == 'pull_request' || github.event_name == 'push'
128129
run: bun run docs:helm
129130

131+
# Commit generated version metadata and README updates on release tags
132+
- name: Auto-commit release assets
133+
if: github.event_name == 'push' && steps.version.outputs.tag == 'latest'
134+
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v5
135+
with:
136+
commit_message: "chore(release): sync generated assets [skip ci]"
137+
branch: main
138+
file_pattern: 'package.json **/package.json charts/**/Chart.yaml charts/**/README.md README.md'
139+
github_token: ${{ env.PAT_TOKEN }}
140+
commit_author_name: 'SettleMint Release Bot'
141+
commit_author_email: 'support@settlemint.com'
142+
130143
- name: Docker meta
131144
if: github.event_name == 'pull_request' || github.event_name == 'push'
132145
id: meta

0 commit comments

Comments
 (0)