Skip to content

Commit

Permalink
Log status code (adoptium#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored and adamfarley committed Jul 26, 2023
1 parent 3b17a0d commit 1baa37a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cacert-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ jobs:
FILE=$(ls ca-certificates/debian/build/ospackage/*.deb)
echo "File to upload: ${FILE}"
CODE=$(curl -s -o /dev/null -w "%{http_code}\n" https://packages.adoptium.net/artifactory/deb/pool/main/a/adoptium-ca-certificates/$(basename ${FILE}))
echo "Status Code received: ${CODE}"
echo "status=$CODE" >> GITHUB_OUTPUT
- name: Log Status Code
run: echo "Status code ${{ steps.check-deb.outputs.status }}"

- name: Upload deb file to Artifactory
if: steps.check-deb.outputs.status == 404
run: |
Expand Down

0 comments on commit 1baa37a

Please sign in to comment.