From 31f82d5870cfb9d3fc0d131527252b3ee30b1bf2 Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Fri, 29 Dec 2023 16:47:00 -0500 Subject: [PATCH 1/2] be more explicit in push run scenarios to avoid running on pushes to PR branches --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6de5bc1..1681969 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,7 +3,7 @@ name: Pull Request or Push on: push: branches: - - '**' # Run on pushes to any branch + - 'main' # Run on pushes to main tags-ignore: - '*' # Ignore pushes to tags pull_request: From 1290517a3e5f9fb5729ee6c030bc75a3e006b354 Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Fri, 29 Dec 2023 16:47:15 -0500 Subject: [PATCH 2/2] add some helpful comments --- .github/workflows/tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 0c33a4d..a3bf12d 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -3,7 +3,7 @@ name: Tagged Releases on: push: tags: - - "v*" + - "v*" # Only tags starting with "v" for "v1.0.0", etc. jobs: get_tag_version: