Skip to content

Commit

Permalink
Merge branch 'main' into jupyterlab-update
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec authored Mar 5, 2023
2 parents f13ff5d + a632f9b commit 46b7c9e
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/daily-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,41 @@ jobs:
cd example/
nix build
- name: Get current date
id: date
if: always()
run: echo "::set-output name=date::$(TZ=GMT date +'%Y-%m-%d %H:%M:%S %Z')"

- name: Get status
id: status
if: always()
uses: ASzc/change-string-case-action@v5
with:
string: ${{ job.status }}

- name: Get status emoji
id: status_emoji
if: always()
uses: haya14busa/action-cond@v1
with:
cond: ${{ steps.status.outputs.lowercase == 'success' }}
if_true: "🎉"
if_false: "💩"

- name: Send message to matrix
id: matrix-chat-message
if: always()
uses: fadenb/[email protected]
with:
homeserver: 'matrix.org'
token: ${{ secrets.MATRIX_TOKEN }}
channel: '<!JVjIaYhrLXOiLWJfnL:matrix.org>'
channel: '!JVjIaYhrLXOiLWJfnL:matrix.org'
message: |
${{ job.status }}
${{ steps.status_emoji.outputs.value }} ***${{ steps.status.outputs.uppercase }}***\
Workflow ***${{ github.workflow }}***\
Job ***${{ github.job }}***\
Triggered by ***${{ github.event_name }}***\
For `${{ github.ref }}`\
On `${{ github.sha }}`\
At ${{ steps.date.outputs.date }}\
With schedule `${{ github.event.schedule }}`

0 comments on commit 46b7c9e

Please sign in to comment.