From: Daniele Varrazzo Date: Sun, 11 May 2025 12:06:55 +0000 (+0200) Subject: ci: avoid running jobs on pull requests X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6adcbe9de7e296cdfd55059d78c8427cce4087d5;p=thirdparty%2Fpsycopg.git ci: avoid running jobs on pull requests Jobs run anyway on push. This setting results in duplicate runs. --- diff --git a/.github/workflows/3rd-party-tests.yml b/.github/workflows/3rd-party-tests.yml index 9d77207c3..b522c769b 100644 --- a/.github/workflows/3rd-party-tests.yml +++ b/.github/workflows/3rd-party-tests.yml @@ -5,6 +5,7 @@ on: branches: - "master" - "maint-3.1" + - "maint-3.2" - "sqlalchemy_pipeline" - "django_pipeline" paths-ignore: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ba3ae6eb3..013d733a7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,7 +6,11 @@ on: # on.. GitHub Actions docs. branches: - "*" - pull_request: + # Note: trying to exclude pull requests because it results in duplicate job + # on the commits belonging to pull requests. + # pull_request: + schedule: + - cron: '18 6 * * *' concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} diff --git a/.github/workflows/packages-bin.yml b/.github/workflows/packages-bin.yml index 1c2c77cb9..794b09839 100644 --- a/.github/workflows/packages-bin.yml +++ b/.github/workflows/packages-bin.yml @@ -16,10 +16,10 @@ name: Build binary packages # ref: https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-github-actions-caches-for-a-repository-using-a-cache-key on: - workflow_dispatch: - pull_request: + push: paths: - '.github/workflows/packages-bin.yml' + workflow_dispatch: schedule: - cron: '28 7 * * sun' diff --git a/.github/workflows/packages-pool.yml b/.github/workflows/packages-pool.yml index cc1ac1936..e24f0e087 100644 --- a/.github/workflows/packages-pool.yml +++ b/.github/workflows/packages-pool.yml @@ -1,9 +1,12 @@ name: Build pool packages on: + push: + paths: + - '.github/workflows/packages-pool.yml' workflow_dispatch: schedule: - - cron: '28 6 * * sun' + - cron: '43 6 * * sun' jobs: diff --git a/.github/workflows/packages-src.yml b/.github/workflows/packages-src.yml index a1559c50f..19d1bc8d5 100644 --- a/.github/workflows/packages-src.yml +++ b/.github/workflows/packages-src.yml @@ -1,6 +1,9 @@ name: Build source packages on: + push: + paths: + - '.github/workflows/packages-src.yml' workflow_dispatch: schedule: - cron: '37 6 * * sun' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce5f76a1c..8650cbf1e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,9 @@ on: # on.. GitHub Actions docs. branches: - "*" - pull_request: + # Note: trying to exclude pull requests because it results in duplicate job + # on the commits belonging to pull requests. + # pull_request: schedule: - cron: '48 6 * * *'