commit cc978ae76570f0230ad65c025becb44732e396bb parent ded945ea62efca4c4bee10eee5dd6f191173c5f1 Author: MTRNord <mtrnord1@gmail.com> Date: Wed, 11 Oct 2023 15:52:17 +0200 Also add status for linting Diffstat:
| M | .github/workflows/pullrequest.yml | | | 18 | ++++++++++++++++++ |
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml @@ -9,10 +9,28 @@ jobs: linting: runs-on: ubuntu-latest steps: + - name: Get PR branch + uses: xt0rted/pull-request-comment-branch@v2 + id: comment-branch + if: github.event.client_payload.slash_command + - name: Set commit status as pending + uses: myrotvorets/set-commit-status-action@master + with: + status: pending + context: Linting changes + sha: ${{ steps.comment-branch.outputs.head_sha }} - name: Checkout repository uses: actions/checkout@v3 - name: Run yamllint run: yamllint . + - name: Set final commit status + uses: myrotvorets/set-commit-status-action@master + if: github.event.client_payload.slash_command + with: + sha: ${{ steps.comment-branch.outputs.head_sha }} + status: ${{ job.status }} + context: Linting changes + validate: permissions: issues: write