-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matheus Pimenta <[email protected]>
- Loading branch information
1 parent
90d60f8
commit 41d3ac4
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Test zulip | ||
|
||
on: | ||
push: | ||
branches: [zulip-alert] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test-zulip: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- run: | | ||
gh run view ${GITHUB_RUN_ID} \ | ||
--json jobs \ | ||
--repo ${GITHUB_REPO} \ | ||
--jq ".jobs[] | select(.name == \"${GITHUB_JOB}\") | .url, (.steps[] | select(.name == \"Run Cypress Tests\") | \"#step:\(.number):1\")" | tr -d "\n" | ||
env: | ||
GITHUB_JOB: ${{ github.job }} | ||
GITHUB_RUN_ID: ${{ github.run_id }} | ||
GITHUB_REPO: ${{ github.repository }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 | ||
with: | ||
email: ${{ secrets.ZULIP_EMAIL }} | ||
api-key: ${{ secrets.ZULIP_API_KEY }} | ||
organization-url: ${{ secrets.ZULIP_ORGANIZATION_URL }} | ||
to: ${{ secrets.ZULIP_CHANNEL }} | ||
topic: ${{ secrets.ZULIP_TOPIC }} | ||
type: stream | ||
content: Test zulip from github action |