From e25d3a54769cd7030713e5b4d1f2e6f70a6df04b Mon Sep 17 00:00:00 2001 From: Marcin Bruzda <94437843+mbruzda-splunk@users.noreply.github.com> Date: Thu, 31 Aug 2023 15:07:50 +0200 Subject: [PATCH] fix: tests for tags (#173) * fix: running tests for tags * chore: added brackets to execute expression * test: brackets around github.ref * chore: inverted commas * test: use bash instead of github function * chore: typo * test: github.ref_type * test: move brackets * docs: update readme * docs: update readme --------- Co-authored-by: Lukasz Loboda <76950960+uoboda-splunk@users.noreply.github.com> --- .github/workflows/reusable-build-test-release.yml | 2 +- README.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-build-test-release.yml b/.github/workflows/reusable-build-test-release.yml index dec1e51a1..d39a64706 100644 --- a/.github/workflows/reusable-build-test-release.yml +++ b/.github/workflows/reusable-build-test-release.yml @@ -171,7 +171,7 @@ jobs: fi ;; "push") - if ${{ github.ref_name == 'main' }} || ${{ github.ref_name == 'develop' }}; then + if ${{ github.ref_name == 'main' }} || ${{ github.ref_name == 'develop' }} || ${{ github.ref_type == 'tag' }} ; then for test_type in "${TESTSET[@]}"; do EXECUTE_LABELED["$test_type"]="true" done diff --git a/README.md b/README.md index fbf6c8f16..31d06d026 100644 --- a/README.md +++ b/README.md @@ -79,9 +79,10 @@ setup-workflow - adding labels will result retriggering job - All tests are executed by default when: - PR target branch is 'main' - - PUSH event on branches 'main' and 'develop' + - PUSH event on branches 'main', 'develop' and on tags (on release) - SCHEDULE event + meta stage =======================