WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 65f926a

Browse files
committed
update upload_packages workflow to trigger on branch push events and use main as default tag for testing
1 parent 229296b commit 65f926a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/upload_packages.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
description: 'Git tag to download artifacts from (e.g., v0.45.0)'
88
required: true
99
type: string
10+
push:
11+
branches:
12+
- gha/upload_packages_workflow
13+
paths:
14+
- '.github/workflows/upload_packages.yml'
1015

1116
jobs:
1217
find-workflow-runs:
@@ -29,9 +34,11 @@ jobs:
2934
env:
3035
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3136
run: |
37+
# Use input tag or default to 'main' for push trigger testing
38+
TAG="${{ inputs.tag || 'main' }}"
3239
# output results to stdout in shell variable format
3340
output=$(./buildscripts/github/find_workflow_runs.py \
34-
--tag "${{ inputs.tag }}" \
41+
--tag "$TAG" \
3542
--repo ${{ github.repository }} \
3643
--token "${{ secrets.GITHUB_TOKEN }}")
3744
echo "$output" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)