From 888b48d34e16d68bec497742d10f45fa5d7b3e06 Mon Sep 17 00:00:00 2001 From: Ricky Padilla Date: Tue, 18 Jun 2024 12:03:26 -0600 Subject: [PATCH] Fix repository id parsing --- .github/workflows/publish-authentikit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-authentikit.yml b/.github/workflows/publish-authentikit.yml index b860b8e..b7c08bd 100644 --- a/.github/workflows/publish-authentikit.yml +++ b/.github/workflows/publish-authentikit.yml @@ -48,7 +48,7 @@ jobs: response=$(curl -u ${{ secrets.OSSRH_USERNAME }}:${{ secrets.OSSRH_PASSWORD }} -X GET "https://s01.oss.sonatype.org/service/local/staging/profile_repositories") echo "Response: $response" - repo_id=$(echo $response | xmllint --xpath "string(//stagingProfileRepository[./profileName[contains(text(), 'authentikit')]]/repositoryId)" -) + repo_id=$(echo ${response} | xmllint --xpath "string(//stagingProfileRepository/repositoryId)" -) echo "Repository ID: $repo_id" echo "::set-output name=repo_id::$repo_id"