]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: avoid running jobs on pull requests
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 11 May 2025 12:06:55 +0000 (14:06 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 11 May 2025 12:32:08 +0000 (14:32 +0200)
Jobs run anyway on push. This setting results in duplicate runs.

.github/workflows/3rd-party-tests.yml
.github/workflows/lint.yml
.github/workflows/packages-bin.yml
.github/workflows/packages-pool.yml
.github/workflows/packages-src.yml
.github/workflows/tests.yml

index 9d77207c318913721f31b169335fa4ca04dc321c..b522c769ba59cf03559954c53aeef727acf5003a 100644 (file)
@@ -5,6 +5,7 @@ on:
     branches:
       - "master"
       - "maint-3.1"
+      - "maint-3.2"
       - "sqlalchemy_pipeline"
       - "django_pipeline"
     paths-ignore:
index ba3ae6eb33e837a104592fd765cd5053b97a3713..013d733a7b93b6663d72fe1221c6c272fc6df812 100644 (file)
@@ -6,7 +6,11 @@ on:
     # on.<push|pull_request>.<branches|tags> 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 }}
index 1c2c77cb9d5c864c0f6cbe7973eb02a35e9e71db..794b0983907659fe117213de534cb492eef7affb 100644 (file)
@@ -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'
 
index cc1ac1936dfb0cc2dce0b8be2896f02e99d079de..e24f0e087e96665353a4c8231d9568da6d130129 100644 (file)
@@ -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:
 
index a1559c50ff5a74c2631ecbfc78a24f489ec159aa..19d1bc8d5d8419b374190ef0f2503ade269acd24 100644 (file)
@@ -1,6 +1,9 @@
 name: Build source packages
 
 on:
+  push:
+    paths:
+      - '.github/workflows/packages-src.yml'
   workflow_dispatch:
   schedule:
     - cron: '37 6 * * sun'
index ce5f76a1c0498e0b6324ac019246319a0df49e75..8650cbf1e783a232b1adf9e35bc29148d6adbaf0 100644 (file)
@@ -6,7 +6,9 @@ on:
     # on.<push|pull_request>.<branches|tags> 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 * * *'