diff --git a/.gitea/workflows/gitleaks.yaml b/.gitea/workflows/gitleaks.yaml index 82300288..8569578b 100644 --- a/.gitea/workflows/gitleaks.yaml +++ b/.gitea/workflows/gitleaks.yaml @@ -4,6 +4,11 @@ on: branches: [ master ] pull_request: +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: gitleaks: #runs-on: ubuntu-latest