Skip to content

Commit

Permalink
Ensure the cert_expired output is properly set in the check_certs job.
Browse files Browse the repository at this point in the history
Debug and confirm that the value of cert_expired matches 'true'.
Use ::set-output explicitly to define the job-level output.
  • Loading branch information
bjornoleh committed Jan 8, 2025
1 parent b8d8a37 commit d951381
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/check_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ jobs:
run: |
CERT_EXPIRED_FILE="/home/runner/work/LoopWorkspace/LoopWorkspace/fastlane/cert_expired.txt"
if [ -f "$CERT_EXPIRED_FILE" ]; then
# Display the content of cert_expired.txt in the logs
echo "Content of cert_expired.txt:"
cat "$CERT_EXPIRED_FILE"
echo "cert_expired=$(cat $CERT_EXPIRED_FILE)" >> $GITHUB_ENV
cert_expired=$(cat $CERT_EXPIRED_FILE)
echo "::set-output name=cert_expired::$cert_expired"
else
echo "cert_expired=false" >> $GITHUB_ENV
echo "::set-output name=cert_expired::false"
fi
# Nuke Certs if no valid certificate or certificate was nuked
Expand All @@ -55,6 +53,9 @@ jobs:
runs-on: macos-14 # This needs to run on macOS for Fastlane
if: ${{ needs.check_certs.outputs.cert_expired == 'true' }} # Only run if certificate is expired or invalid
steps:
- name: Debug check_certs output
run: echo "cert_expired=${{ needs.check_certs.outputs.cert_expired }}"

- name: Checkout repository
uses: actions/checkout@v3

Expand Down

0 comments on commit d951381

Please sign in to comment.