We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4341c25 commit 7cecd16Copy full SHA for 7cecd16
.github/workflows/publish-acs-esp-miner-firmware.yml
@@ -48,7 +48,14 @@ jobs:
48
49
- name: Download release asset
50
run: |
51
- URL="https://github.com/${REPO}/releases/download/${{ github.event.release.tag_name || 'latest' }}/$ASSET_NAME"
+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
52
+ # Get the latest release tag from GitHub API
53
+ LATEST_TAG=$(curl -s "https://api.github.com/repos/${REPO}/releases/latest" | jq -r '.tag_name')
54
+ echo "Latest release tag: $LATEST_TAG"
55
+ URL="https://github.com/${REPO}/releases/download/$LATEST_TAG/$ASSET_NAME"
56
+ else
57
+ URL="https://github.com/${REPO}/releases/download/${{ github.event.release.tag_name }}/$ASSET_NAME"
58
+ fi
59
echo "Downloading $URL"
60
curl -L -o "$ASSET_NAME" "$URL"
61
0 commit comments