Skip to content

Conversation

@kwonoj
Copy link
Member

@kwonoj kwonoj commented Dec 3, 2022

This PR trying to experiment automated action to create a PR to upgrade swc_* when new version is released. It is an action runs periodically (2 times a daily) which runs cargo upgrade, then create a PR if there's an update to be applied. If there is an open PR with specific branch name, it won't create new but trying to update PR with new commit when there's an update.

To create fully working pull request, action requires personal access token unfortunately. I choose name GHA_UPGRADE_TOKEN for those, having one under repository secrets will enable action to perform:

image

We can use default GITHUB_TOKEN still, but it'll create PR with limited acesss with github-actions bot will not trigger any action to verify build is passing or not. (ref: peter-evans/create-pull-request#48)

My goal is let these actions run across transitive deps we own, so most of upgrade process is simple enough to click merge btn unless there are breaking changes.

@kwonoj
Copy link
Member Author

kwonoj commented Dec 3, 2022

I can offer my gh token to get notified myself, please let me know.

@kdy1 kdy1 enabled auto-merge (squash) December 3, 2022 01:55
@kdy1 kdy1 merged commit 2943f12 into swc-project:main Dec 3, 2022
@kwonoj kwonoj deleted the build-gha-upgrade branch December 5, 2022 18:22
@kdy1 kdy1 self-assigned this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants