26 lines
865 B
YAML
26 lines
865 B
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: Chat Setup
|
|
if: ${{ always() }}
|
|
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v0.1.0
|
|
with:
|
|
project: ${{ forgejo.repository }}
|
|
commit: ${{ steps.slug.outputs.sha8 }}
|
|
branch: ${{ forgejo.ref }}
|
|
status: ${{ job.status }}
|
|
actionid: ${{ forgejo.repository }}/actions/runs/${{ forgejo.run_id }}
|
|
webhook: "https://chat.googleapis.com/v1/spaces/AAAAYTX-Vqs/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=Iwtvo1dwg36dZgUyrUCREQGGMrO71PkIoQGafOf17Yg%3D&threadKey=git-commit"
|