mirror of
https://github.com/Slava-Shchipunov/awg-openwrt.git
synced 2026-03-14 01:13:09 +00:00
fix: add job output
This commit is contained in:
10
.github/workflows/run-release.yml
vendored
10
.github/workflows/run-release.yml
vendored
@@ -23,12 +23,16 @@ jobs:
|
||||
|
||||
- name: Check if release exists in your repo
|
||||
id: check_release
|
||||
continue-on-error: true
|
||||
run: |
|
||||
curl -s https://api.github.com/repos/Slava-Shchipunov/awg-openwrt/releases/tags/${{ steps.get_release.outputs.release_tag }} | jq -r .tag_name || echo "Not found"
|
||||
RELEASE_EXISTS=$(curl -s https://api.github.com/repos/Slava-Shchipunov/awg-openwrt/releases/tags/${{ steps.get_release.outputs.release_tag }} | jq -r .tag_name)
|
||||
if [ "$RELEASE_EXISTS" == "null" ]; then
|
||||
echo "::set-output name=release_exists::false"
|
||||
else
|
||||
echo "::set-output name=release_exists::true"
|
||||
fi
|
||||
|
||||
- name: Create release in your repo
|
||||
if: failure() || steps.check_release.outputs.tag_name == 'null'
|
||||
if: steps.check_release.outputs.release_exists == 'false'
|
||||
run: |
|
||||
ART="
|
||||
_______ ________ __
|
||||
|
||||
Reference in New Issue
Block a user