mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: only run release if releases_create == 'true'
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -435,7 +435,7 @@ jobs:
|
||||
|
||||
create-draft-release:
|
||||
# Only run if release-please created a release
|
||||
if: needs.release-please.outputs.releases_created
|
||||
if: needs.release-please.outputs.releases_created == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
needs: [release-please, test-api, build-plugin]
|
||||
steps:
|
||||
@@ -460,5 +460,5 @@ jobs:
|
||||
# For each file in release directory
|
||||
for file in release/*; do
|
||||
echo "Uploading $file to release..."
|
||||
gh release upload ${{ needs.release-please.outputs.tag_name }} "$file" --clobber
|
||||
gh release upload "${{ needs.release-please.outputs.tag_name }}" "$file" --clobber
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user