chore: commit generated references with GitHub App#546
Conversation
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
|
posthog-python Compliance ReportDate: 2026-04-30 10:11:53 UTC ✅ All Tests Passed!30/30 tests passed Capture Tests✅ 29/29 tests passed View Details
Feature_Flags Tests✅ 1/1 tests passed View Details
|
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: gh workflow run generate-references.yml --ref main | ||
| GITHUB_TOKEN: ${{ steps.releaser.outputs.token }} |
There was a problem hiding this comment.
we need this to live here because of the GH token, otherwise it'd require a 2nd environment approval
| - name: Dispatch generate-references | ||
| - name: Generate references | ||
| if: steps.commit-release.outputs.commit-hash != '' | ||
| run: | |
There was a problem hiding this comment.
Do we need a continue on error for these next steps? Low context from me here but if the package is released and externally visible I think we should not fail. Plus previous impl was just dispatching to another workflow so any failures were isolated there and did not affect this one
There was a problem hiding this comment.
i dont disagree but this is exactly what happened before
generate references was failing and we didnt notice for quite a while
There was a problem hiding this comment.
Could this be a warning message on slack?
There was a problem hiding this comment.
since this is executed after release, github release etc the release will work anyway, and if references failed, we can just fix forward
There was a problem hiding this comment.
yes, its gonna be a failed release, so the slack thread gets updated, we know that it partly failed, fix forward and thats it
There was a problem hiding this comment.
we can change if this often fails and its breaking releases
we tried the other way, we had this broken for a few weeks, now we try the other way
# Conflicts: # .github/workflows/generate-references.yml
💡 Motivation and Context
The generated references workflow was failing when trying to push directly to
mainwithgithub-actions[bot], because repository rules require verified commits and PR/ruleset checks.References are only needed after releases, so this removes the standalone manual
generate-references.ymlworkflow and generates/commits references inline in the already-approved release job. The commit now uses the same GitHub App token andplanetscale/ghcommit-actionflow used by the release workflow, avoiding a second environment approval.💚 How did you test it?
.github/workflows/release.ymlas YAML locally.git diff --check.📝 Checklist
If releasing new changes
sampo addto generate a changeset filereleaselabel to the PR