This repository was archived by the owner on Mar 9, 2026. It is now read-only.
cache mongoclient & fix long serialization #42
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: Engine Bridge 🔄 Auto Release on Main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| trigger-release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| actions: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.PAT_TOKEN }} | |
| fetch-depth: 2 | |
| - name: Check if should trigger release | |
| id: should-trigger | |
| run: | | |
| # Skip if commit message contains [skip ci] or is a version bump commit | |
| COMMIT_MSG=$(git log -1 --pretty=%B) | |
| if echo "$COMMIT_MSG" | grep -qE "\[skip ci\]|bump version"; then | |
| echo "trigger=false" >> $GITHUB_OUTPUT | |
| echo "Skipping release trigger: commit message indicates skip" | |
| else | |
| echo "trigger=true" >> $GITHUB_OUTPUT | |
| echo "Will trigger release" | |
| fi | |
| - name: Trigger release | |
| if: steps.should-trigger.outputs.trigger == 'true' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} | |
| run: | | |
| gh api repos/${{ github.repository }}/dispatches \ | |
| -X POST \ | |
| -f event_type='create-release' \ | |
| --raw-field 'client_payload[version_type]=patch' | |