From 9c9132c053972f777431077dcceec0ec7e8bb488 Mon Sep 17 00:00:00 2001 From: Yannick Forster Date: Thu, 20 Apr 2023 17:51:57 +0200 Subject: [PATCH] only run n i x on push events and if the word is in the commit message --- .github/workflows/nix-action-coq-8.16-macos.yml | 11 ++++------- .github/workflows/nix-action-coq-8.16-ubuntu.yml | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/nix-action-coq-8.16-macos.yml b/.github/workflows/nix-action-coq-8.16-macos.yml index 1e89ebab4..26982f3c6 100644 --- a/.github/workflows/nix-action-coq-8.16-macos.yml +++ b/.github/workflows/nix-action-coq-8.16-macos.yml @@ -1,6 +1,7 @@ jobs: coq: needs: [] + if: ${{ contains(github.event.head_commit.message, 'nix') }} runs-on: macos-latest concurrency: group: ${{ github.workflow }}-MacOS-coq-${{ github.event_name }}-${{ github.head_ref || github.run_id }} @@ -173,14 +174,10 @@ jobs: --argstr job "metacoq" name: Nix CI for bundle coq-8.16 'on': - pull_request: - paths: - - .github/workflows/** pull_request_target: - types: - - opened - - synchronize - - reopened + types: [] + branches: + - dontrun push: branches: - master diff --git a/.github/workflows/nix-action-coq-8.16-ubuntu.yml b/.github/workflows/nix-action-coq-8.16-ubuntu.yml index c9705f2ba..b74984655 100644 --- a/.github/workflows/nix-action-coq-8.16-ubuntu.yml +++ b/.github/workflows/nix-action-coq-8.16-ubuntu.yml @@ -1,6 +1,7 @@ jobs: coq: needs: [] + if: ${{ contains(github.event.head_commit.message, 'nix') }} runs-on: ubuntu-latest concurrency: group: ${{ github.workflow }}-Ubuntu-coq-${{ github.event_name }}-${{ github.head_ref || github.run_id }} @@ -173,14 +174,10 @@ jobs: --argstr job "metacoq" name: Nix CI for bundle coq-8.16 'on': - pull_request: - paths: - - .github/workflows/** pull_request_target: - types: - - opened - - synchronize - - reopened + types: [] + branches: + - dontrun push: branches: - master