This commit is contained in:
parent
f51f6faf19
commit
15d776c790
1 changed files with 13 additions and 18 deletions
31
README.md
31
README.md
|
|
@ -13,23 +13,18 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Get commit hash
|
||||
if: ${{ always() }}
|
||||
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
|
||||
id: slug
|
||||
|
||||
- name: Chat Setup
|
||||
if: ${{ always() }}
|
||||
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v0
|
||||
with:
|
||||
project: ${{ github.repository }}
|
||||
commit: ${{ steps.slug.outputs.sha8 }}
|
||||
branch: ${{ github.ref }}
|
||||
status: ${{ job.status }}
|
||||
actionid: ${{ github.repository }}/runs/${{ github.run_id }}
|
||||
webhook: "https://chat.googleapis.com/v1/spaces/AAAAzPcAy4s/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=MmdzluicdrdkyUAV_QwB6BzlLcIhbfrwNzxVrEllaec%3D&threadKey=git-commit"
|
||||
# ... all your steps
|
||||
- name: Sample Chat Message
|
||||
if: ${{ always() }} # runs als after fails
|
||||
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v0.1.2
|
||||
with:
|
||||
title: "[START] sample test (${{ forgejo.run_number }})"
|
||||
author: ${{ forgejo.actor }}
|
||||
giturl: ${{ forgejo.server_url }}
|
||||
iconslug: instacart # optional
|
||||
# status: ${{ job.status }} # optional
|
||||
actionid: ${{ forgejo.run_number }}
|
||||
webhook: "${{ secrets.WEBHOOK_URL }}"
|
||||
event_body: "This is a sample <b>TEXT</b><br>with a new line" # optional
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue