Skip to content

Commit

Permalink
Adds slack-slash-command-example.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyHayward committed Feb 3, 2021
1 parent a484e95 commit 5864ef2
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 317 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/command-dispatch.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/deploy-command-dispatcher.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/deploy-command.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/example-command.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/pr-deploy-command.yml

This file was deleted.

160 changes: 0 additions & 160 deletions .github/workflows/slack-deploy-command.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/slack-slash-command-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Slack Slasch Command Example

on:
repository_dispatch:
types:
- slack-slash-command-example

jobs:
demo:
name: Run Demo
runs-on: ubuntu-latest
env:
PAYLOAD_CONTEXT: ${{ toJson(github.event.client_payload) }}
USER_NAME: ${{ github.event.client_payload.data.user_name }}

steps:
- name: Send Slack Message
uses: muinmomin/webhook-action@v1.0.0
with:
url: ${{ env.RESPONSE_URL }}
data: '{ "response_type": "in_channel", "text": "Hello <@${{ env.USER_NAME }}> from the running GitHub Actions Workflow." }'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# actions-experiments
Github action testing ground
My Github action testing ground.

0 comments on commit 5864ef2

Please sign in to comment.