From ce1ae6a27860682c05533b48c012586bb4166cdc Mon Sep 17 00:00:00 2001 From: Alessio Date: Sun, 23 Feb 2025 18:32:04 -0800 Subject: [PATCH] reduce expression to only tag --- .gitea/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 50bff30..fa7da6b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -45,7 +45,13 @@ jobs: env: # This could be anything, it's just a temp file SESSION_FILE_PATH: /tmp/Offline_Twatter.session - if: contains(join(github.event.head_commit.modified, ','), 'cmd/') || contains(join(github.event.head_commit.added, ','), 'cmd/') || contains(join(github.event.head_commit.removed, ','), 'cmd/') contains(join(github.event.head_commit.modified, ','), 'pkg/scraper/') || contains(join(github.event.head_commit.added, ','), 'pkg/scraper/') || contains(join(github.event.head_commit.removed, ','), 'pkg/scraper/') || startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') + # contains(join(github.event.head_commit.modified, ','), 'cmd/') || + # contains(join(github.event.head_commit.added, ','), 'cmd/') || + # contains(join(github.event.head_commit.removed, ','), 'cmd/') + # contains(join(github.event.head_commit.modified, ','), 'pkg/scraper/') || + # contains(join(github.event.head_commit.added, ','), 'pkg/scraper/') || + # contains(join(github.event.head_commit.removed, ','), 'pkg/scraper/') || # Write the session file contents to a temp location so it can be used in the tests run: | cd cmd