Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Dec 10, 2024
1 parent b0e7806 commit 6ee470b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/upl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ jobs:
echo "File 2" > archive/file2.tar.gz
- name: Trigger upload workflow for each file
env:
GH_TOKEN: ${{ github.token }} # Set GH_TOKEN environment variable
run: |
for file in archive/*.tar.gz; do
artifact_name=$(basename "$file" .tar.gz)
echo "Triggering upload for $file as $artifact_name"
# Use gh workflow run with --field
gh workflow run upload_artifacts.yml \
--field artifact_name="$artifact_name" \
--field artifact_path="$file"
Expand Down

0 comments on commit 6ee470b

Please sign in to comment.