mirror of
https://github.com/oneclickvirt/ecs.git
synced 2025-12-18 23:38:13 +08:00
fix:错误则直接退出
Some checks failed
Build All UI APP / Prepare Version (push) Has been cancelled
Build All UI APP / Build Android APK (push) Has been cancelled
Build All UI APP / Build Desktop Apps (amd64, macos-amd64, macos-13, darwin) (push) Has been cancelled
Build All UI APP / Build Desktop Apps (amd64, windows-amd64, windows-latest, windows) (push) Has been cancelled
Build All UI APP / Build Desktop Apps (arm64, macos-arm64, macos-latest, darwin) (push) Has been cancelled
Some checks failed
Build All UI APP / Prepare Version (push) Has been cancelled
Build All UI APP / Build Android APK (push) Has been cancelled
Build All UI APP / Build Desktop Apps (amd64, macos-amd64, macos-13, darwin) (push) Has been cancelled
Build All UI APP / Build Desktop Apps (amd64, windows-amd64, windows-latest, windows) (push) Has been cancelled
Build All UI APP / Build Desktop Apps (arm64, macos-arm64, macos-latest, darwin) (push) Has been cancelled
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -251,17 +251,13 @@ jobs:
|
||||
ls -lh .build/
|
||||
du -sh .build/*
|
||||
|
||||
- name: Get or create release
|
||||
- name: Get release
|
||||
id: get_release
|
||||
shell: bash
|
||||
run: |
|
||||
LATEST_RELEASE=$(gh release list --limit 1 --json tagName --jq '.[0].tagName')
|
||||
if [ -z "$LATEST_RELEASE" ] || [ "$LATEST_RELEASE" == "null" ]; then
|
||||
echo "No existing release found, creating a new one"
|
||||
gh release create "${{ needs.prepare.outputs.version }}" \
|
||||
--title "Release ${{ needs.prepare.outputs.version }}" \
|
||||
--notes "Automated build from ${{ github.sha }}"
|
||||
RELEASE_TAG="${{ needs.prepare.outputs.version }}"
|
||||
exit 1
|
||||
else
|
||||
RELEASE_TAG="$LATEST_RELEASE"
|
||||
echo "Found existing release: $RELEASE_TAG"
|
||||
|
||||
Reference in New Issue
Block a user