Skip to content

Commit

Permalink
Fail verify-staged-artifacts.yml if no artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Nov 16, 2023
1 parent 9802afd commit 55b40f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/verify-staged-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ jobs:
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}

- name: Download Artifact from Staging Repo
run: jfrog rt download libs-staging-local/org/springframework/integration/spring-integration-aws/${{ inputs.releaseVersion }}/spring-integration-aws-${{ inputs.releaseVersion }}.jar
run: |
jfrog rt download libs-staging-local/org/springframework/integration/spring-integration-aws/${{ inputs.releaseVersion }}/spring-integration-aws-${{ inputs.releaseVersion }}.jar spring-integration-aws.jar
if [ ! -f spring-integration-aws.jar ]
then
echo "::error title=No staged artifact::No spring-integration-aws-${{ inputs.releaseVersion }}.jar in staging repository"
exit 1
fi

0 comments on commit 55b40f6

Please sign in to comment.