Skip to content

Commit

Permalink
Log status code (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored Jun 20, 2023
1 parent 3b619a2 commit e90b1bd
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 e90b1bd

Please sign in to comment.