consolesmods/.drone.yml
Sthope fcbcec46ef
Some checks failed
continuous-integration/drone/push Build is failing
Update .drone.yml
2023-08-28 19:45:40 +02:00

39 lines
1.2 KiB
YAML

## https://github.com/insignia-live/setup-assistant-release
kind: pipeline
name: release
trigger:
release: true
steps:
- name: check_release_tag
image: alpine:3.13
commands:
- apk add --no-cache curl jq
- |
latestReleaseTag=$(curl -s "https://api.github.com/repos/insignia-live/setup-assistant-release/releases/latest" | jq -r '.tag_name')
targetReleaseTag="2023-02-13-1223" # Replace with your target release tag
if [[ "$latestReleaseTag" != "$targetReleaseTag" ]]; then
echo "This pipeline is run because the new release is different from the target tag."
exit 78
else
echo "The release tag is the same as the target tag. Skipping pipeline."
exit 0
fi
when:
status:
- success
- failure
- changed
- name: testing
image: alpine
commands:
- apk add --no-cache curl
- mkdir -p Insignia
- >
curl -sL -o Insignia/default.xbe $(curl -s "https://api.github.com/repos/insignia-live/setup-assistant-release/releases/latest" |
grep "browser_download_url.*setup.xbe" | cut -d : -f 2,3 | tr -d \") && ls -l Insignia
- git push