Skip to content

Commit 5d80b5e

Browse files
author
Ankush Pala [email protected]
committed
now lets try slack
Summary: Test Plan:
1 parent d1c51ac commit 5d80b5e

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

.github/workflows/blank.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,14 @@ jobs:
3434
run: |
3535
echo Add other actions to build,
3636
echo test, and deploy your project.
37-
create-file:
38-
runs-on: ubuntu-latest
39-
steps:
40-
- name: Create file
41-
run: |
42-
echo "Hello, world!" > example.txt
43-
echo "This is a test file." >> example.txt
44-
- name: List files
45-
run: ls -l -a
46-
- uses: actions/upload-artifact@master
47-
with:
48-
name: my-artifact
49-
path: example.txt
50-
ls:
51-
needs: create-file
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/download-artifact@master
37+
- name: Send custom JSON data to Slack workflow
38+
id: slack
39+
uses: slackapi/[email protected]
5540
with:
56-
name: my-artifact
57-
path: example.txt
58-
- name: List files
59-
run: ls -l -a
60-
- name: pwd
61-
run: pwd
41+
# This data can be any valid JSON from a previous step in the GitHub Action
42+
payload: |
43+
{
44+
"text": "Headsup - The python-sdk has been version bumped"
45+
}
46+
env:
47+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)