From 16a5f874b341a6d4776dbe5e46be391f1d6576d8 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 17 Apr 2026 16:21:59 +0200 Subject: [PATCH] feat: linting --- .github/workflows/example.yml | 10 ++++----- .github/workflows/release.yml | 38 ++++++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 6 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index dba744a..db1f183 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -1,5 +1,5 @@ name: Sample Testing -on: [push] +on: [workflow_dispatch] env: VER: 0.1.2 @@ -22,10 +22,10 @@ jobs: webhook: "${{ secrets.WEBHOOK_URL }}" # event_body: "" # optional - - name: Force failure - run: | - echo "This is a force failure" - exit 1 +# - name: Force failure +# run: | +# echo "This is a force failure" +# exit 1 - name: Second Chat Message as ThreadResponse if: ${{ always() }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2890b3e..7b8174d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,9 @@ on: branches: - '**' +env: + VER: 0.1.2 + # If a 403 error occurs, make sure to set content permission to write # see: https://github.com/go-semantic-release/action/issues/27 permissions: @@ -25,7 +28,9 @@ jobs: go-version: 1.26 - name: GO Linting - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v9 + with: + version: v2.11 # build: # runs-on: stackit-docker @@ -47,6 +52,17 @@ jobs: outputs: tag: ${{ steps.create_release.outputs.tag }} steps: + - name: "[START] release workflow" + if: ${{ always() }} + uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v${{ env.VER }} + with: + title: "[START] release workflow (${{ forgejo.run_number }})" + author: ${{ forgejo.actor }} + giturl: ${{ forgejo.server_url }} + iconslug: instacart + actionid: ${{ forgejo.run_number }} + webhook: "${{ secrets.WEBHOOK_URL }}" + - name: Checkout code uses: actions/checkout@v6 @@ -95,8 +111,28 @@ jobs: if: steps.create_release.outputs.tag != '' uses: docker/setup-buildx-action@v4 + - name: Build only + if: steps.create_release.outputs.tag == '' + uses: docker/build-push-action@v7 + with: + push: false + tags: actions/notify-slim:dev + - name: Build and push + if: steps.create_release.outputs.tag != '' uses: docker/build-push-action@v7 with: push: false tags: actions/notify-slim:${{ steps.create_release.outputs.tag }} + + - name: "[END] release workflow" + if: ${{ always() }} + uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v${{ env.VER }} + with: + title: "[START] release workflow (${{ forgejo.run_number }})" + author: ${{ forgejo.actor }} + giturl: ${{ forgejo.server_url }} + iconslug: instacart + actionid: ${{ forgejo.run_number }} + webhook: "${{ secrets.WEBHOOK_URL }}" + status: 'completed'