From d346a159515549f0b6d173aeca71b6b87de57d00 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Thu, 16 Apr 2026 08:24:44 +0200 Subject: [PATCH] chore: initial release --- .github/workflows/example.yml | 14 ++++++++------ .gitignore | 27 +++++++++++++++++++++++++++ README.md | 6 ++++-- go.mod | 5 +++++ 4 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 .gitignore create mode 100644 go.mod diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 822652d..921330b 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -7,18 +7,20 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v6 + - name: Get commit hash if: ${{ always() }} - run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" + run: echo "::set-output name=sha8::$(echo ${FORGEJO_SHA} | cut -c1-8)" id: slug + - name: Chat Setup if: ${{ always() }} - uses: DTherHtun/google-chat-action@v0.8 + uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v0 with: - project: ${{ github.repository }} + project: ${{ forgejo.repository }} commit: ${{ steps.slug.outputs.sha8 }} - branch: ${{ github.ref }} + branch: ${{ forgejo.ref }} status: ${{ job.status }} - actionid: ${{ github.repository }}/actions/runs/${{ github.run_id }} + 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" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f597e4b --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +### Go template +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work +go.work.sum + +# env file +.env + diff --git a/README.md b/README.md index 79a1ad5..d305f27 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,16 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + 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: DTherHtun/google-chat-action@v0.8 + uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v0 with: project: ${{ github.repository }} commit: ${{ steps.slug.outputs.sha8 }} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a935e06 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module google-chat-action + +go 1.26.2 + +require github.com/sethvargo/go-githubactions v1.3.2