diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index 8c2e077..94f8f0d 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -15,10 +15,17 @@ on: push: tags: - '*.*.*' - workflow_dispatch: pull_request: branches: [ main ] + # Allow job to be triggered manually. + workflow_dispatch: + +# Cancel in-progress jobs when pushing to the same branch. +concurrency: + cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + env: GHCR_IMAGE_NAME: ghcr.io/panodata/grafana-wtf diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 328b413..87de7e7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,14 @@ on: schedule: - cron: '0 7 * * 1' + # Allow job to be triggered manually. + workflow_dispatch: + +# Cancel in-progress jobs when pushing to the same branch. +concurrency: + cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + jobs: tests: