]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Disable running CI tests on tag
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 15 Nov 2021 00:00:45 +0000 (01:00 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 15 Nov 2021 00:04:21 +0000 (01:04 +0100)
At least I hope. According to GitHub Docs [1]:

> If you define only `tags` or only `branches`, the workflow won't run for
> events affecting the undefined Git ref.

[1]: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#onpushpull_requestbranchestags

.github/workflows/lint.yml
.github/workflows/tests.yml

index 54c49b8f170f74f99869ac897937a627ad56e07d..99b4f7f98158c9e95dccb5ce9f108e00e9673710 100644 (file)
@@ -2,6 +2,10 @@ name: Lint
 
 on:
   push:
+    # This should disable running the workflow on tags, according to the
+    # on.<push|pull_request>.<branches|tags> GitHub Actions docs.
+    branches:
+      - "*"
   pull_request:
 
 jobs:
index 55b1645594cf5167ca27a1ac1de87e70dde23c68..e7f42ecc03b8cb7765107c6d672901ab0af80035 100644 (file)
@@ -2,6 +2,10 @@ name: Tests
 
 on:
   push:
+    # This should disable running the workflow on tags, according to the
+    # on.<push|pull_request>.<branches|tags> GitHub Actions docs.
+    branches:
+      - "*"
   pull_request:
 
 jobs: