File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test zulip
2
+
3
+ on :
4
+ push :
5
+ branches : [zulip-alert]
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ jobs :
11
+ test-zulip :
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ contents : read
15
+ steps :
16
+ - run : |
17
+ gh run view ${GITHUB_RUN_ID} jobs --json \
18
+ --repo ${GITHUB_REPO} \
19
+ --jq ".jobs[] | select(.name == \"${GITHUB_JOB}\") | .url, (.steps[] | select(.name == \"Run Cypress Tests\") | \"#step:\(.number):1\")" | tr -d "\n"
20
+ env:
21
+ GITHUB_JOB: ${{ github.job }}
22
+ GITHUB_RUN_ID: ${{ github.run_id }}
23
+ GITHUB_REPO: ${{ github.repository }}
24
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
+ - uses : zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
26
+ with :
27
+ email : ${{ secrets.ZULIP_EMAIL }}
28
+ api-key : ${{ secrets.ZULIP_API_KEY }}
29
+ organization-url : ${{ secrets.ZULIP_ORGANIZATION_URL }}
30
+ to : ${{ secrets.ZULIP_CHANNEL }}
31
+ topic : ${{ secrets.ZULIP_TOPIC }}
32
+ type : stream
33
+ content : Test zulip from github action
You can’t perform that action at this time.
0 commit comments