Skip to content

Merge Release Tag

Merge Release Tag #5

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: ${{ github.ref =~ '^refs/tags/mongosh@[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$' }}

Check failure on line 12 in .github/workflows/merge-release-tag.yml

View workflow run for this annotation

GitHub Actions / Merge Release Tag

Invalid workflow file

The workflow is not valid. .github/workflows/merge-release-tag.yml (Line: 12, Col: 9): Unexpected symbol: '=~'. Located at position 12 within expression: github.ref =~ '^refs/tags/mongosh@[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$'
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