File tree Expand file tree Collapse file tree 1 file changed +10
-24
lines changed Expand file tree Collapse file tree 1 file changed +10
-24
lines changed Original file line number Diff line number Diff line change @@ -34,28 +34,14 @@ jobs:
34
34
run : |
35
35
echo Add other actions to build,
36
36
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
+
55
40
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 }}
You can’t perform that action at this time.
0 commit comments