Commit 2c41dffc authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

enable beekeeper slash cmd (#822)

parent d619f5c0
name: Beekeeper name: Beekeeper
on: on:
repository_dispatch: issue_comment:
types: [trigger-beekeeper] types: [created]
jobs: jobs:
beekeeper: beekeeper:
name: Execute "/beekeeper" slash command
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/beekeeper')
env: env:
REPLICA: 3 REPLICA: 3
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check for Command
id: command
uses: xt0rted/slash-command-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: beekeeper
reaction-type: "rocket"
- name: Get PR Branch
if: steps.command.outputs.command-arguments == 'beekeeper'
id: comment-branch
uses: xt0rted/pull-request-comment-branch@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- name: Echo command (debug)
run: echo "The command was '${{ steps.command.outputs.command-name }}' with arguments '${{ steps.command.outputs.command-arguments }}'"
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
ref: ${{ steps.comment-branch.outputs.ref }}
fetch-depth: 1 fetch-depth: 1
- name: Install bee-local - name: Install bee-local
run: | run: |
......
...@@ -68,11 +68,3 @@ jobs: ...@@ -68,11 +68,3 @@ jobs:
./bin/deepsource report --analyzer test-coverage --key go --value-file ./cover.out ./bin/deepsource report --analyzer test-coverage --key go --value-file ./cover.out
env: env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
- name: Trigger Beekeeper
if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && success()
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_GHA_PAT }}
repository: ${{ github.repository }}
event-type: trigger-beekeeper
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment