diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a6ca329..09ee6c6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -17,15 +17,19 @@ jobs: with: go-version: '1.26' + - name: Install just + run: | + curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash + - name: Test & Build run: | - just vet test - just build-linux-amd64 - /bin/gitbump_linux_amd64 --version + /root/bin/just vet test + /root/bin/just build-linux-amd64 + ./bin/gitbump_linux_amd64 --version build: runs-on: [ubuntu-latest, amd64] - needs: test-build + needs: test if: github.ref == 'refs/heads/master' permissions: contents: write @@ -44,17 +48,16 @@ jobs: run: go run main.go notify-failure: - runs-on: go-executor + runs-on: [ubuntu-latest, amd64] needs: [test, build] - if: always() && contains(needs.*.result, 'failure') + if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped')) steps: - name: ntfy-failed-notifications uses: niniyas/ntfy-action@master with: - url: 'https://ntfy.zlymeda.dynu.net' - topic: ${{ secrets.NTFY_TOPIC || 'errors' }} + url: ${{ secrets.NTFY_URL }} + topic: ${{ secrets.NTFY_TOPIC }} priority: 5 tags: flying_saucer,warning,🚨,🛠️,action,failed details: Workflow has failed! actions: 'default' -