Skip to content

Commit 1c0ae0f

Browse files
committed
adding trigger again just to run once
1 parent 36fc511 commit 1c0ae0f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pack-tutorials.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
workflow_dispatch:
55
release:
66
types: [published]
7+
push:
78

89
jobs:
910
zip_and_upload:
@@ -40,7 +41,9 @@ jobs:
4041
- name: Find the latest existing release tag
4142
id: get_release
4243
run: |
43-
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
44+
if [ "${{ github.event_name }}" == "release" ]; then
45+
LATEST_TAG="${{ github.event.release.tag_name }}"
46+
else
4447
echo "::notice::Running manually via workflow_dispatch. Fetching latest release tag..."
4548
4649
gh auth status || echo "GitHub CLI is not authenticated, relying on GITHUB_TOKEN."
@@ -52,8 +55,6 @@ jobs:
5255
echo "::error::Could not find the latest published release tag. Ensure a release exists."
5356
exit 1
5457
fi
55-
else
56-
LATEST_TAG="${{ github.event.release.tag_name }}"
5758
fi
5859
5960
echo "Latest release tag found: $LATEST_TAG"

0 commit comments

Comments
 (0)