Cancel superseded pull request validation without cancelling releases

This commit is contained in:
2026-09-11 08:47:06 +00:00
parent dc5429b697
commit 8c73f3b464
+12 -5
View File
@@ -4,14 +4,21 @@ on:
push:
branches:
- master
- main
tags:
- v*
workflow_dispatch:
workflow_dispatch: null
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number
|| github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build-and-push:
runs-on: ubuntu-latest
runs-on: butler-ci
env:
REGISTRY: gitea.wayfinderak.com
IMAGE_NAME: gitea.wayfinderak.com/wayfinderak/goff
@@ -77,7 +84,7 @@ jobs:
run: go test ./...
- name: Log in to Gitea Container Registry
if: ${{ steps.delivery.outputs.run == 'true' }}
if: ${{ (steps.delivery.outputs.run == 'true') && github.event_name != 'pull_request' }}
shell: bash
run: |
set -euo pipefail
@@ -139,7 +146,7 @@ jobs:
docker build "${build_args[@]}" .
- name: Push image
if: ${{ steps.delivery.outputs.run == 'true' }}
if: ${{ (steps.delivery.outputs.run == 'true') && github.event_name != 'pull_request' }}
shell: bash
run: |
set -euo pipefail