This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
Report run and failure with comment #55
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: Command-Action | |
on: | |
pull_request: | |
issue_comment: | |
types: [created] | |
jobs: | |
cmd-check: | |
runs-on: ubuntu-latest | |
outputs: | |
commands: ${{ steps.command.outputs.commands }} | |
branch: ${{ steps.command.outputs.branch }} | |
name: Bot | |
steps: | |
- uses: paritytech/cmd-action/check@main | |
id: command | |
cmd-run: | |
needs: [cmd-check] | |
if: ${{ github.event.issue.pull_request }} | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
command: ${{ fromJson(needs.cmd-check.outputs.commands) }} | |
name: Run command | |
steps: | |
- uses: paritytech/cmd-action/run@main | |
with: | |
branch: ${{ needs.cmd-check.outputs.branch }} | |
command: ${{ matrix.command }} | |
# If you need to push your changes you can do so like this | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: cmd-action - changes | |
branch: ${{ needs.cmd-check.outputs.branch }} |