@@ -603,12 +603,16 @@ jobs:
603603 - name : Define properties
604604 shell : bash
605605 run : |
606- VERSION="${{ github.event.inputs.version || '0.0.0.0' }} "
606+ VERSION="$VERSION "
607607 BRANCH="${GITHUB_REF#refs/heads/}"
608608 COMMIT="${GITHUB_SHA}"
609609 RELEASE_NOTES="${{github.server_url}}/${{github.repository}}/releases"
610- ${{ github.event.inputs.release }} && RELEASE_NOTES+="/tag/${{ github.event.inputs.branch }} "
610+ ${{ RELEASE }} && RELEASE_NOTES+="/tag/$BRANCH "
611611 echo "NUSPEC_PROPERTIES=version=$VERSION;branch=$BRANCH;commit=$COMMIT;releaseNotes=$RELEASE_NOTES" >> "$GITHUB_ENV"
612+ env :
613+ VERSION : ${{ github.event.inputs.version || '0.0.0.0' }}
614+ RELEASE : ${{ github.event.inputs.release }}
615+ BRANCH : ${{ github.event.inputs.branch }}
612616 - name : Pack
613617 shell : bash
614618 run : |
@@ -651,7 +655,7 @@ jobs:
651655
652656 PLATFORM=\$1
653657 SOURCE_DIR=\$2
654- VERSION="${{ github.event.inputs.version }} "
658+ VERSION="$VERSION "
655659
656660 # rename "include/" into "include/pdfium/"
657661 shopt -s extglob
@@ -661,6 +665,8 @@ jobs:
661665 python conda/build.py pdfium-binaries \$PLATFORM \$VERSION --about-file conda/about.json --source-dir \$SOURCE_DIR --output-dir conda/out
662666 END
663667 chmod +x conda-build.sh
668+ env :
669+ VERSION : ${{ github.event.inputs.version }}
664670 - name : Build for linux-64
665671 run : ./conda-build.sh linux-64 pdfium-linux-x64
666672 - name : Build for linux-aarch64
@@ -745,18 +751,22 @@ jobs:
745751 echo "::endgroup::"
746752 done
747753 - name : Write release body
748- run : echo 'This version was built with branch `${{ github.event.inputs.branch }}` of PDFium' > RELEASE.md
754+ run : echo 'This version was built with branch `$BRANCH` of PDFium' > RELEASE.md
755+ env :
756+ BRANCH : ${{ github.event.inputs.branch }}
749757 - name : Get changes
750758 continue-on-error : true
751759 run : |
752- CURRENT_REV=${{ github.event.inputs.branch }}
760+ CURRENT_REV=$BRANCH
753761 PREVIOUS_REV=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest" | jq -r ".tag_name")
754- git clone -b "${{ github.event.inputs.branch }} " https://pdfium.googlesource.com/pdfium.git
762+ git clone -b "$BRANCH " https://pdfium.googlesource.com/pdfium.git
755763 cat <<END >> RELEASE.md
756764 ### Changes
757765 Commits between \`$PREVIOUS_REV\` and \`$CURRENT_REV\`:
758766 END
759767 git -C "pdfium" log origin/${PREVIOUS_REV}.. --pretty=format:'* [%s](https://pdfium.googlesource.com/pdfium/+/%H)' >> RELEASE.md
768+ env :
769+ BRANCH : ${{ github.event.inputs.branch }}
760770 - name : Generate artifacts checksums
761771 id : hash
762772 run : echo "hashes=$(sha256sum pdfium-*.tgz | base64 -w0)" >> "$GITHUB_OUTPUT"
0 commit comments