From fe9b47fc1fd3bdc887266c80a69a48a447671daa Mon Sep 17 00:00:00 2001 From: Zihlu Wang Date: Mon, 5 May 2025 13:53:51 +0800 Subject: [PATCH] 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> --- .github/workflows/github-packages-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-packages-publish.yml b/.github/workflows/github-packages-publish.yml index fcc1294..4d32dd7 100644 --- a/.github/workflows/github-packages-publish.yml +++ b/.github/workflows/github-packages-publish.yml @@ -72,7 +72,7 @@ jobs: - name: Create Deployment on Central Publisher Portal run: | - curl -X 'POST' \ + curl --fail -X 'POST' \ 'https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.onixbyte?publishing_type=user_managed' \ -H 'accept: */*' \ -H 'Authorization: Bearer ${{ secrets.MAVEN_PORTAL_TOKEN }}' \