notify/.github/workflows/example.yml
Marcel S. Henselin d5b203cb65
All checks were successful
Sample Testing / my_job (push) Successful in 2m9s
fix: fix iconslug handling
2026-04-17 14:05:43 +02:00

43 lines
1.3 KiB
YAML

name: Sample Testing
on: [push]
jobs:
my_job:
runs-on: stackit-docker
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Get commit hash
if: ${{ always() }}
run: echo "::set-output name=sha8::$(echo ${FORGEJO_SHA} | cut -c1-8)"
id: slug
- name: First Chat Message
if: ${{ always() }}
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v0.1.2
with:
author: ${{ forgejo.actor }}
giturl: ${{ forgejo.server_url }}
project: ${{ forgejo.repository }}
commit: ${{ steps.slug.outputs.sha8 }}
branch: ${{ forgejo.ref }}
status: ${{ job.status }}
actionid: ${{ forgejo.run_id }}
webhook: "${{ secrets.WEBHOOK_URL }}"
event_body: ""
- name: Second Chat Message as ThreadResponse
if: ${{ always() }}
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v0.1.2
with:
author: ${{ forgejo.actor }}
giturl: ${{ forgejo.server_url }}
project: ${{ forgejo.repository }}
commit: ${{ steps.slug.outputs.sha8 }}
branch: ${{ forgejo.ref }}
status: ${{ job.status }}
actionid: ${{ forgejo.run_id }}
webhook: "${{ secrets.WEBHOOK_URL }}"
event_body: "this time <b>I</b> provided a body"