Github actions to create and finish ceremonies #4
Workflow file for this run
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: Finish ceremony | |
on: | |
pull_request: | |
types: [ closed ] | |
jobs: | |
finish-ceremony: | |
if: ${{ github.event.pull_request.merged == false && github.actor == github.event.pull_request.assignee.login && contains(github.event.pull_request.labels.*.name, 'on-going-ceremony') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Checkout LFS objects | |
run: git lfs checkout | |
- name: Run toolkit | |
run: make finish-locally | |
- name: Commit ceremony artifacts | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
commit_message: Finish '${{ github.event.pull_request.head.ref }}' ceremony | |
commit_options: '--no-verify' | |
commit_user_name: Voceremony Bot |