Merge into main #17
This file contains 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 into main | |
on: | |
workflow_dispatch: | |
inputs: | |
commit: | |
description: 'Commit ID' | |
required: false | |
type: string | |
jobs: | |
deploy: | |
name: Merge into main | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.MACHINE_USER_APP_ID }} | |
private_key: ${{ secrets.MACHINE_USER_PRIVATE_KEY }} | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: develop | |
token: ${{ steps.generate_token.outputs.token }} | |
- name: Merge into main | |
shell: bash | |
run: | | |
git config user.name "SF Machine User[bot]" | |
git config user.email "${{ secrets.MACHINE_USER_APP_ID }}+sf-machine-user[bot]@users.noreply.github.com" | |
git switch main | |
git merge ${{ github.event.inputs.commit || 'develop' }} | |
git push |