Skip to content

Commit 7d23dc7

Browse files
committed
[actions][test-cmds] use all target for tags
1 parent c452a8c commit 7d23dc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/set-test-commands/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ runs:
1414
steps:
1515
- name: set-test-commands
1616
run: |
17-
if [[ ${{ github.ref_name }} == "main" ]]; then
17+
if [[ ${{ github.ref_name }} == "main" || \
18+
( ${{ github.ref_type }} == "tag" && ${{ github.ref_name }} =~ v[0-9]\.[0-9]\.[0-9]$ )]]; then
1819
echo "Using 'all' target on main branch (i.e. all tests are built & run)"
1920
echo "all" > _affected_tests.txt
2021
else

0 commit comments

Comments
 (0)