Skip to content

Commit

Permalink
Addressed PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Guian Gumpac <[email protected]>
  • Loading branch information
GumpacG committed Sep 5, 2024
1 parent e837357 commit c3dd631
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permissions:
jobs:
load-platform-matrix:
runs-on: ubuntu-latest
# environment: AWS_ACTIONS
environment: AWS_ACTIONS
outputs:
PLATFORM_MATRIX: ${{ steps.load-platform-matrix.outputs.PLATFORM_MATRIX }}
steps:
Expand All @@ -40,7 +40,6 @@ jobs:
echo "PLATFORM_MATRIX=${PLATFORM_MATRIX}" >> $GITHUB_OUTPUT
set-release-version:
needs: load-platform-matrix
runs-on: ubuntu-latest
outputs:
RELEASE_VERSION: ${{ steps.release-version.outputs.RELEASE_VERSION }}
Expand Down Expand Up @@ -72,7 +71,7 @@ jobs:
# Run all jobs
fail-fast: false
matrix:
host: ${{fromJson(needs.load-platform-matrix.outputs.PLATFORM_MATRIX)}}
host: ${{ fromJson(needs.load-platform-matrix.outputs.PLATFORM_MATRIX) }}

runs-on: ${{ matrix.host.RUNNER }}

Expand Down Expand Up @@ -196,7 +195,7 @@ jobs:
- name: Check status of deployment
run: |
for ((retries = 0; retries < 5; retries++)); do
for ((retries = 0; retries < 20; retries++)); do
sleep 5
export DEPLOYMENT_STATUS=`curl --request POST \
-u "${{ secrets.CENTRAL_TOKEN_USERNAME }}:${{ secrets.CENTRAL_TOKEN_PASSWORD }}" \
Expand All @@ -210,6 +209,7 @@ jobs:
-u "${{ secrets.CENTRAL_TOKEN_USERNAME }}:${{ secrets.CENTRAL_TOKEN_PASSWORD }}" \
"https://central.sonatype.com/api/v1/publisher/status?id=${{ env.DEPLOYMENT_ID }}" \
| jq
echo "Deployment ${{ env.DEPLOYMENT_ID }} was unsuccessful with status $DEPLOYMENT_STATUS"
exit 1
- uses: actions/checkout@v4
Expand Down

0 comments on commit c3dd631

Please sign in to comment.