diff --git a/.github/workflows/pr-command.yml b/.github/workflows/pr-command.yml index bdd5d8e552..a8afbd1f69 100644 --- a/.github/workflows/pr-command.yml +++ b/.github/workflows/pr-command.yml @@ -13,13 +13,8 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/build_test') }} steps: - - name: Set latest commit status as pending - uses: myrotvorets/set-commit-status-action@master - with: - sha: ${{ steps.comment-branch.outputs.head_sha }} - token: ${{ secrets.GITHUB_TOKEN }} - status: pending - name: Command handler for building and testing + permissions: read-all | write-all id: command uses: xt0rted/slash-command-action@v1 with: @@ -32,23 +27,18 @@ jobs: build-and-test: if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/build_test') }} + permissions: read-all | write-all uses: ./.github/workflows/ci-build-image.yml with: build-arch: amd64 secrets: inherit - commit: + comment: runs-on: ubuntu-latest if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/build_test') }} steps: - - name: Set latest commit status as ${{ job.status }} - uses: myrotvorets/set-commit-status-action@master - if: always() - with: - sha: ${{ steps.comment-branch.outputs.head_sha }} - token: ${{ secrets.GITHUB_TOKEN }} - status: ${{ job.status }} - name: Add comment to PR + permissions: read-all | write-all uses: actions/github-script@v6 if: always() with: