diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index 2e89ea5e..1c187f67 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -23,8 +23,10 @@ jobs: id: checkout timeout-minutes: 15 run: | + PDFium_BRANCH=$(git ls-remote --sort version:refname --refs https://pdfium.googlesource.com/pdfium.git 'chromium/*' | tail -n 1 | cut -d/ -f3-4) + echo "Checking out branch $PDFium_BRANCH" gclient config --unmanaged "https://pdfium.googlesource.com/pdfium.git" --custom-var "checkout_configuration=minimal" - gclient sync --no-history --shallow + gclient sync -r "origin/${PDFium_BRANCH}" --no-history --shallow - name: Create patch script run: |