Skip to content

Commit

Permalink
Merge pull request #5590 from nk-87/ci-repeat-slash
Browse files Browse the repository at this point in the history
Add ci-repeat and test-codecov slash commands
  • Loading branch information
ivotron committed Jul 22, 2022
2 parents 975b5e0 + 2d47279 commit a75457a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/buildkite-slash-commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
repository_dispatch:
types:
- ci-repeat-command
- test-codecov-command

jobs:
run-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: redpanda-data/sparse-checkout
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
path: sparse-checkout

- uses: ./sparse-checkout
with:
repository: redpanda-data/vtools
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
patterns: actions
path: ghca

- name: Buildkite slash command action
uses: ./ghca/actions/buildkite-slash-commands
with:
buildkite_token: ${{ secrets.BUILDKITE_TOKEN }}
buildkite_org: redpanda
buildkite_pipeline: redpanda
command: ${{ github.event.client_payload.slash_command.command }}

- name: Success reaction
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reaction-type: hooray

- name: Error response
if: failure()
uses: ./ghca/actions/slash-command-error
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
body: ${{ env.ERROR_MSG }}
2 changes: 2 additions & 0 deletions .github/workflows/slash-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
issue-type: both
commands: |
backport
ci-repeat
test-codecov
static-args: |
org=redpanda-data
repo=redpanda
Expand Down

0 comments on commit a75457a

Please sign in to comment.