Skip to content

Commit d80f5d7

Browse files
committed
cherry-pick: Enable tag event and nightly builds (#19452)
Refs: #19413
1 parent 7f183d9 commit d80f5d7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/actions/test_ya/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ runs:
287287
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
288288
echo "BRANCH_NAME is set to $BRANCH_NAME"
289289
290-
TESTMO_BRANCH_TAG="$BRANCH_NAME"
290+
TESTMO_BRANCH_TAG="${BRANCH_NAME//[^a-zA-Z0-9-]/-}"
291291
TESTMO_ARCH="${{ runner.arch == 'X64' && 'x86-64' || runner.arch == 'ARM64' && 'arm64' || 'unknown' }}"
292292
TESTMO_PR_NUMBER=${{ github.event.number }}
293293

.github/workflows/nightly_build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
type: boolean
1010
required: false
1111
default: true
12-
12+
push:
13+
tags:
14+
- '[0-9]**'
1315
jobs:
1416
determine_branches:
1517
runs-on: ubuntu-latest
@@ -18,7 +20,7 @@ jobs:
1820
steps:
1921
- id: set-branches
2022
run: |
21-
if [[ "${{ github.event_name }}" == "schedule" || "${{ inputs.use_default_branches }}" == "true" ]]; then
23+
if [[ "${{ github.event_name }}" == "schedule" || ("${{ inputs.use_default_branches }}" == "true" && "${{ github.ref_type }}" != "tag") ]]; then
2224
echo "branches=['main', 'stable-25-1', 'stable-24-4', 'stable-25-1-1', 'stable-25-1-analytics']" >> $GITHUB_OUTPUT
2325
else
2426
echo "branches=['${{ github.ref_name }}']" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)