-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add automatic merging of the release tag MONGOSH-2018 (#2379)
The new system requires us to manually merge into main. This automates that with a new workflow.
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Merge Release Tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'mongosh@[0-9]+.[0-9]+.[0-9]+' | ||
- 'mongosh@[0-9]+.[0-9]+.[0-9]-rc.[0-9]+' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: none # We use the github app to checkout and push changes | ||
|
||
jobs: | ||
merge-release-tag: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: mongodb-js/devtools-shared/actions/setup-bot-token@main | ||
id: app-token | ||
with: | ||
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }} | ||
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }} | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
fetch-depth: "0" | ||
token: ${{ steps.app-token.outputs.token }} | ||
|
||
- name: Merge release tag into main | ||
run: | | ||
git merge ${{ github.ref }} -m "chore(release): merge changes from ${{ github.ref_name }}" | ||
git push origin main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters