-
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Merge Release Into Master | ||
|
||
on: repository_dispatch | ||
|
||
jobs: | ||
merge_to_master: | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. Is the goal here to grant |
||
steps: | ||
- name: Merge to master | ||
uses: actions/[email protected] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Will try to bump to v6 |
||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
github.repos.merge({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
base: 'master', | ||
head: 'release' | ||
}) | ||
hsubox76 marked this conversation as resolved.
Show resolved
Hide resolved
|
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 specificevent_type
value in the webhook payload.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.