Skip to content

Commit 4d359aa

Browse files
committed
fix(ci): tighten release workflow diagnostics
1 parent c4cf0e4 commit 4d359aa

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎.github/workflows/create-releases.yml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
${{ github.event_name == 'workflow_dispatch' ||
4343
steps.automatic.outputs.releases_created == 'true' }}
4444
source_sha: ${{ steps.retry.outputs.source_sha || steps.automatic.outputs.sha }}
45-
release_tag: ${{ inputs.release_tag || steps.automatic.outputs.tag_name }}
45+
release_tag: ${{ steps.retry.outputs.release_tag || steps.automatic.outputs.tag_name }}
4646

4747
steps:
4848
- name: Check out main
@@ -118,7 +118,10 @@ jobs:
118118
exit 1
119119
fi
120120
121-
echo "source_sha=$source_sha" >> "$GITHUB_OUTPUT"
121+
{
122+
echo "source_sha=$source_sha"
123+
echo "release_tag=$RELEASE_TAG"
124+
} >> "$GITHUB_OUTPUT"
122125
123126
runtime_compatibility:
124127
name: Release / runtime compatibility
@@ -181,7 +184,10 @@ jobs:
181184
- name: Check generated GraalVM files
182185
run: |
183186
directory="openai-java-core/src/main/resources/META-INF/native-image"
184-
[[ -d "$directory" && -n "$(ls -A "$directory")" ]]
187+
if [[ ! -d "$directory" || -z "$(ls -A "$directory")" ]]; then
188+
echo "::error::No GraalVM metadata found in $directory"
189+
exit 1
190+
fi
185191
186192
- name: Publish to Maven Central
187193
env:

0 commit comments

Comments
 (0)