diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6514c61..c47f0dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: types: [opened, synchronize, reopened] permissions: contents: read +concurrency: + group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.dependencies }} diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index 1c7a97f..0d78723 100644 --- a/.github/workflows/dependabot-automerge.yml +++ b/.github/workflows/dependabot-automerge.yml @@ -5,7 +5,7 @@ on: workflows: [CI, Documentation, Validate Dependabot Auto-merge] types: [completed] schedule: - - cron: '*/15 * * * *' + - cron: '27 9 * * *' workflow_dispatch: permissions: @@ -20,7 +20,13 @@ concurrency: jobs: merge: - if: github.repository == 'JuliaQUBO/QUBODecomposition.jl' + if: >- + github.repository == 'JuliaQUBO/QUBODecomposition.jl' && + (github.event_name != 'workflow_run' || + (github.event.workflow_run.conclusion == 'success' && + (github.event.workflow_run.actor.login == 'dependabot[bot]' || + startsWith(github.event.workflow_run.head_branch, 'dependabot/') || + github.event.workflow_run.head_branch == 'main'))) runs-on: ubuntu-latest steps: - name: Checkout trusted main