Skip to content

Commit 7d6f0c0

Browse files
committed
Only check PDF for GA releases
(cherry picked from commit 5f24837)
1 parent 14f534d commit 7d6f0c0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,17 @@ jobs:
199199
sudo apt-get install --yes poppler-utils
200200
- name: Wait for deployment
201201
if: ${{ inputs.dryRun == false }}
202-
id: pagesDeployment
203202
timeout-minutes: 30
204-
run: |
205-
URL="https://docs.junit.org/${{ inputs.releaseVersion }}/_exports/junit-user-guide-${{ inputs.releaseVersion }}.pdf"
206-
./.github/scripts/waitForUrl.sh "$URL"
207-
echo "pdfUrl=$URL" >> "$GITHUB_OUTPUT"
203+
run: ./.github/scripts/waitForUrl.sh "${URL}"
204+
env:
205+
URL: https://docs.junit.org/${{ inputs.releaseVersion }}/
208206
- name: Verify integrity of PDF version of User Guide
209-
if: ${{ inputs.dryRun == false }}
207+
if: inputs.dryRun == false && !contains(inputs.releaseVersion, '-')
210208
run: |
211-
curl --silent --fail --location --output /tmp/junit-user-guide.pdf "${{ steps.pagesDeployment.outputs.pdfUrl }}"
209+
curl --silent --fail --location --output /tmp/junit-user-guide.pdf "${PDF_URL}"
212210
pdfinfo /tmp/junit-user-guide.pdf
211+
env:
212+
PDF_URL: https://docs.junit.org/${{ inputs.releaseVersion }}/_exports/junit-user-guide-${{ inputs.releaseVersion }}.pdf
213213

214214
update_examples:
215215
name: Update examples

0 commit comments

Comments
 (0)