Skip to content

Commit fe9b47f

Browse files
Zihlu WangCopilot
andauthored
fix: added --fail flag to prevent non-success HTTP responses cause the step to fail
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f1d7d0f commit fe9b47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/github-packages-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272

7373
- name: Create Deployment on Central Publisher Portal
7474
run: |
75-
curl -X 'POST' \
75+
curl --fail -X 'POST' \
7676
'https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.onixbyte?publishing_type=user_managed' \
7777
-H 'accept: */*' \
7878
-H 'Authorization: Bearer ${{ secrets.MAVEN_PORTAL_TOKEN }}' \

0 commit comments

Comments
 (0)