Skip to content

Merge Release Tag

Merge Release Tag #16

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