-
Notifications
You must be signed in to change notification settings - Fork 938
Add a workflow to merge release into master #6217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (148,440 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.Test Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Left a few comments
contents: write | ||
steps: | ||
- name: Merge to master | ||
uses: actions/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the latest version is v6 now (includes breaking changes). Worth checking if we can use one of the recent versions here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will try to bump to v6
runs-on: ubuntu-latest | ||
# Allow GITHUB_TOKEN to have write permissions | ||
permissions: | ||
contents: write |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the goal here to grant GITHUB_TOKEN
with default permissions (without write access) and add write access in the workflow?
@@ -0,0 +1,22 @@ | |||
name: Merge Release Into Master | |||
|
|||
on: repository_dispatch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit feel free to ignore:
We can set types:
here if we want to restrict the manual trigger even further with a specific event_type
value in the webhook payload.
on:
repository_dispatch:
types: [sdk-release-merge]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add this when/if we trigger from a webhook. We'll use the button in the Github UI for now.
Manually triggerable workflow that merges release into master. Won't be able to test it until after next release.