This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new 2ba0760692 Use the staging repo id instead of the profile id
2ba0760692 is described below
commit 2ba0760692ae11380f33f825c1b7710326b59f51
Author: James Daugherty <[email protected]>
AuthorDate: Wed May 28 15:05:22 2025 -0400
Use the staging repo id instead of the profile id
---
.github/workflows/dropStaging.yml | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/dropStaging.yml
b/.github/workflows/dropStaging.yml
index 097380278e..29d9afb3f9 100644
--- a/.github/workflows/dropStaging.yml
+++ b/.github/workflows/dropStaging.yml
@@ -16,6 +16,10 @@
name: "Release - Drop Staging"
on:
workflow_dispatch:
+ inputs:
+ staging_repository_id:
+ description: 'ID of the staging repository to drop - i.e.
orgapachegrails-1000'
+ required: true
jobs:
publish:
runs-on: ubuntu-latest
@@ -24,18 +28,18 @@ jobs:
env:
NEXUS_STAGE_DEPLOYER_USER: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}
NEXUS_STAGE_DEPLOYER_PW: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
- STAGING_PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }}
+ STAGING_REPOSITORY_ID: ${{ github.event.inputs.staging_repository_id
}}
run: |
response=$(curl -s --request POST -u
"$NEXUS_STAGE_DEPLOYER_USER:$NEXUS_STAGE_DEPLOYER_PW" \
--url
https://repository.apache.org/service/local/staging/bulk/drop \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'User-Agent: Grails Github Actions' \
- --data '{ "data" :
{"stagedRepositoryIds":["'"$STAGING_PROFILE_ID"'"], "description":"Drop
'"$STAGING_PROFILE_ID"'." } }')
+ --data '{ "data" :
{"stagedRepositoryIds":["'"$STAGING_REPOSITORY_ID"'"], "description":"Drop
'"$STAGING_REPOSITORY_ID"'." } }')
if [ ! -z "$response" ]; then
- echo "Error while dropping staged repository $STAGING_PROFILE_ID
: $response."
+ echo "Error while dropping staged repository
$STAGING_REPOSITORY_ID : $response."
exit 1
else
- echo "Successfully dropped repository $STAGING_PROFILE_ID."
+ echo "Successfully dropped repository $STAGING_REPOSITORY_ID."
fi
\ No newline at end of file