mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-11-25 16:47:37 +02:00
CI: Fix release run 2/2
[why] For some reason setting of some variables broke. [how] Did not spent any time to find the reason, just rewrote it in a more readable and debuggable manner and now it works (??!) Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
f7e5858d71
commit
48a0ff8e63
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@ -55,7 +55,13 @@ jobs:
|
||||
- name: Determine candidate status
|
||||
id: rel_can
|
||||
run: |
|
||||
[[ "${{ steps.rel_ver.outputs.val }}" == *"-RC"* ]] && echo "val=true" || echo "val=false" >> $GITHUB_OUTPUT
|
||||
if [[ "${{ steps.rel_ver.outputs.val }}" == *"-RC"* ]]; then
|
||||
CAN="val=true"
|
||||
else
|
||||
CAN="val=false"
|
||||
fi
|
||||
echo "${CAN}"
|
||||
echo "${CAN}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Determine new release or re-release
|
||||
# If the tag exists it is obviously a re-release
|
||||
@ -68,9 +74,10 @@ jobs:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
id: rel_pre_existing
|
||||
run: |
|
||||
curl -v "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/tags" | jq '.[].name' | grep '^"v${{ steps.rel_ver.outputs.val }}"$' \
|
||||
&& echo "exists=true" || echo "exists=false" >> $GITHUB_OUTPUT
|
||||
echo "Tag exists: ${{ steps.rel_pre_existing.outputs.exists }}"
|
||||
RPE=$(curl -v "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/tags" | jq '.[].name' | grep '^"v${{ steps.rel_ver.outputs.val }}"$' \
|
||||
&& echo "exists=true" || echo "exists=false")
|
||||
echo "${RPE}" >> $GITHUB_OUTPUT
|
||||
echo "Tag exists: ${RPE}"
|
||||
|
||||
- name: Upload release only on first trigger for release and always on release candidate
|
||||
id: upload
|
||||
@ -78,7 +85,13 @@ jobs:
|
||||
# * This is a new (previously untagged) release
|
||||
# * This is a release candidate
|
||||
run: |
|
||||
[[ "${{ steps.rel_can.outputs.val }}" == "true" || "${{ steps.rel_pre_existing.outputs.exists }}" == "false" ]] && echo "val=true" || echo "val=false" >> $GITHUB_OUTPUT
|
||||
if [[ "${{ steps.rel_can.outputs.val }}" == "true" || "${{ steps.rel_pre_existing.outputs.exists }}" == "false" ]]; then
|
||||
UP="val=true"
|
||||
else
|
||||
UP="val=false"
|
||||
fi
|
||||
echo "${UP}"
|
||||
echo "${UP}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Determine release timestamp
|
||||
id: timestamp
|
||||
|
Loading…
Reference in New Issue
Block a user