Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49e5c4a4cb | ||
|
c8ebc292c9
|
|||
|
|
aa311ee4fb | ||
| e2d3530e0f | |||
|
|
da06878348 | ||
| 2773b04158 |
21
CHANGELOG.md
21
CHANGELOG.md
@@ -1,3 +1,24 @@
|
|||||||
|
## [1.0.4](https://git.xenoxindustries.com/interkonnekted/setup-weld/compare/v1.0.3...v1.0.4) (2026-01-08)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **action:** intelligent binary name resolution ([c8ebc29](https://git.xenoxindustries.com/interkonnekted/setup-weld/commit/c8ebc292c97d954b9e7888142c73d9bb849649f6))
|
||||||
|
|
||||||
|
## [1.0.3](https://git.xenoxindustries.com/interkonnekted/setup-weld/compare/v1.0.2...v1.0.3) (2026-01-08)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add debug echo ([e2d3530](https://git.xenoxindustries.com/interkonnekted/setup-weld/commit/e2d3530e0fc0c07fb3eb56957c8ade9c9cc31c1d))
|
||||||
|
|
||||||
|
## [1.0.2](https://git.xenoxindustries.com/interkonnekted/setup-weld/compare/v1.0.1...v1.0.2) (2026-01-08)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* added curl follow redirect and change repo name ([2773b04](https://git.xenoxindustries.com/interkonnekted/setup-weld/commit/2773b04158aea1beb5ad2483a9c242e6c3dab063))
|
||||||
|
|
||||||
## [1.0.1](https://git.xenoxindustries.com/xenoxindustries/setup-weld/compare/v1.0.0...v1.0.1) (2026-01-08)
|
## [1.0.1](https://git.xenoxindustries.com/xenoxindustries/setup-weld/compare/v1.0.0...v1.0.1) (2026-01-08)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
16
action.yml
16
action.yml
@@ -9,7 +9,7 @@ inputs:
|
|||||||
repo:
|
repo:
|
||||||
description: 'The owner/repo on Gitea.'
|
description: 'The owner/repo on Gitea.'
|
||||||
required: false
|
required: false
|
||||||
default: 'xenoxindustries/weld'
|
default: 'interkonnekted/weld'
|
||||||
token:
|
token:
|
||||||
description: 'Gitea Personal Access Token (PAT).'
|
description: 'Gitea Personal Access Token (PAT).'
|
||||||
required: true
|
required: true
|
||||||
@@ -30,12 +30,22 @@ runs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Fetch release JSON from Gitea API
|
# Fetch release JSON from Gitea API
|
||||||
RESPONSE=$(curl -s -H "Authorization: token ${{ inputs.token }}" "$GITEA_URL/$ENDPOINT")
|
RESPONSE=$(curl -sL -H "Authorization: token ${{ inputs.token }}" "$GITEA_URL/$ENDPOINT")
|
||||||
|
echo $RESPONSE
|
||||||
|
|
||||||
# Extract Tag and Download URL for the asset named 'weld'
|
# Extract Tag and Download URL for the asset named 'weld'
|
||||||
TAG=$(echo $RESPONSE | jq -r '.tag_name')
|
TAG=$(echo $RESPONSE | jq -r '.tag_name')
|
||||||
# This jq filter finds the asset named 'weld' and gets its download URL
|
# This jq filter finds the asset named 'weld' and gets its download URL
|
||||||
DL_URL=$(echo $RESPONSE | jq -r '.assets[] | select(.name=="weld") | .browser_download_url')
|
DL_URL=$(echo $RESPONSE | jq -r '.assets[] | select(
|
||||||
|
(.name == "weld" or (.name | startswith("weld-binary-")) or (.name | startswith("weld-")))
|
||||||
|
and (.name | endswith(".deb") | not)
|
||||||
|
) | .browser_download_url' | head -n 1)
|
||||||
|
|
||||||
|
if [[ -z "$DL_URL" || "$DL_URL" == "null" ]]; then
|
||||||
|
echo "❌ ERROR: Could not find a valid 'weld' binary in the release assets."
|
||||||
|
echo "Available assets: $(echo "$RESPONSE" | jq -r '.assets[].name')"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||||
echo "url=$DL_URL" >> $GITHUB_OUTPUT
|
echo "url=$DL_URL" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user