Skip to content

Commit

Permalink
j
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Jul 27, 2023
1 parent 215eef8 commit 6626523
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/pr-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 6626523

Please sign in to comment.