Test render+commit based on label #1
Workflow file for this run
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: Pull request precommit tasks | |
| on: | |
| # This workflow is only valid for pull_request events | |
| #workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| - release/* | |
| types: [labeled] | |
| jobs: | |
| render-and-commit: | |
| name: Rendering xml file to markdown and yaml, and commit to branch | |
| if: ${{ github.event.label.name == 'render-and-commit' }} | |
| uses: ./.github/workflows/render.yml | |
| with: | |
| commit_to_branch: true | |
| # github.head_ref is the branch from which a pull request is made | |
| branch_name: ${{ github.head_ref }} |