Update link in Action

This commit is contained in:
Edward Brown 2023-08-29 16:13:11 +01:00
parent ec381e9eb1
commit 3417da93e4

View file

@ -68,3 +68,9 @@ jobs:
run: |
twine upload dist/*
- name: Update Link
run: |
URL=https://github.com/${ORG}/${NAME}/releases/download/v${VERSION}/${NAME_SHORT}.tapp
DATA="{\"destination\": \"${URL}\"}"
curl --request POST --url https://api.rebrandly.com/v1/links/${LINK_ID} --header 'accept: application/json' --header "apikey: ${REBRANDLY_API_KEY}" --header 'content-type: application/json' --data "$DATA" &> /dev/null