Skip to content

Commit

Permalink
fix: tests for tags (#173)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
mbruzda-splunk and uoboda-splunk authored Aug 31, 2023
1 parent c75e76d commit e25d3a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
=======================

Expand Down

0 comments on commit e25d3a5

Please sign in to comment.