From f8d83f83c23f1b07cf3c41f86129cb37911aed17 Mon Sep 17 00:00:00 2001 From: Manabu McCloskey Date: Tue, 26 Nov 2024 15:10:49 -0800 Subject: [PATCH] Create slash-command.yaml --- .github/workflows/slash-command.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/slash-command.yaml diff --git a/.github/workflows/slash-command.yaml b/.github/workflows/slash-command.yaml new file mode 100644 index 00000000..c0b7d92b --- /dev/null +++ b/.github/workflows/slash-command.yaml @@ -0,0 +1,21 @@ +name: slash-command + +on: + issue_comment: + types: [created] + +jobs: + slash_command_dispatch: + runs-on: ubuntu-22.04 + steps: + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.CNOE_GH_WORKFLOW_TOKEN_APP_ID }} + private-key: ${{ secrets.CNOE_GH_WORKFLOW_TOKEN_PRIVATE_KEY }} + - name: Slash Command Dispatch + uses: peter-evans/slash-command-dispatch@v4 + with: + token: ${{ steps.generate-token.outputs.token }} + commands: e2e