Trigger New Release #9
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
on: | |
workflow_dispatch: | |
inputs: | |
message: | |
description: 'Message' | |
type: string | |
required: true | |
name: Trigger New Release | |
jobs: | |
# CircleCI currently builds the release; all this does is push a merge commit | |
# to the `release` branch (which triggers Circle to build and publish). | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
fetch-depth: 0 | |
- name: Update release branch | |
run: | | |
git config user.name 'GH Actions Bot' | |
git config user.email '[email protected]' | |
git fetch origin main | |
git fetch origin release | |
git checkout release | |
git pull | |
git merge main -m '${{ inputs.message }}' | |
git push |