Merge Release Tag #16
Workflow file for this run
This file contains hidden or 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
name: Merge Release Tag | |
on: | |
create: | |
workflow_dispatch: | |
permissions: | |
contents: none # We use the github app to checkout and push changes | |
jobs: | |
merge-release-tag: | |
if: ${{ startsWith(github.ref, 'refs/tags/mongosh@') }} | |
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 |