4040 java-version : 11
4141 cache : maven
4242 - run : java -version
43+ - name : Pre-install Snapshot Dependencies
44+ run : |
45+ bash java-cloud-bom/tests/pre-install.sh
46+ shell : bash
4347 - name : Pick Libraries BOM version
4448 id : pick-version
4549 shell : bash
@@ -48,13 +52,10 @@ jobs:
4852 if [ -n "${WORKFLOW_DISPATCH_INPUT}" ]; then
4953 echo "WORKFLOW_DISPATCH_INPUT: ${WORKFLOW_DISPATCH_INPUT}"
5054 echo "libraries-bom-version=${WORKFLOW_DISPATCH_INPUT}" >> $GITHUB_OUTPUT
51- elif [[ "${GITHUB_REF}" == *"refs/tags/v"* ]]; then
52- # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
53- # Example value of GITHUB_REF: refs/tags/v26.5.0
54- # With the single-component setup of Release Please, the Libraries BOM
55- # version is the version of this repository release.
55+ elif [[ "${GITHUB_REF}" == *"refs/tags/"* ]]; then
56+ # Example value of GITHUB_REF: refs/tags/libraries-bom/v26.5.0
5657 echo "GITHUB_REF: ${GITHUB_REF}"
57- VERSION=${GITHUB_REF#refs/*/ v}
58+ VERSION=${GITHUB_REF#* v}
5859 echo "libraries-bom-version=${VERSION}" >> $GITHUB_OUTPUT
5960 else
6061 echo "Couldn't find the Libraries BOM version. WORKFLOW_DISPATCH_INPUT \
8586 GH_TOKEN : ${{ github.token }}
8687 - name : Update the release note with release_note.md
8788 run : |
88- TAG="v${LIBRARIES_BOM_VERSION}"
89+ TAG="libraries-bom/ v${LIBRARIES_BOM_VERSION}"
8990 echo "Updating ${TAG}"
9091 gh release edit "${TAG}" --notes-file release_note.md
9192 working-directory : java-cloud-bom/release-note-generation
0 commit comments