File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5050 - name : Calculate Next Beam Snapshot Version
5151 id : calculate_beam_snapshot
5252 run : |
53- if [ -n "${{ github.event.inputs.snapshot_version } }" ]; then
54- BEAM_SNAPSHOT_VERSION="${{ github.event.inputs.snapshot_version } }"
53+ if [ -n "${GITHUB_EVENT_INPUTS_SNAPSHOT_VERSION }" ]; then
54+ BEAM_SNAPSHOT_VERSION="${GITHUB_EVENT_INPUTS_SNAPSHOT_VERSION }"
5555 echo "Using provided Beam snapshot version: $BEAM_SNAPSHOT_VERSION"
5656 else
5757 CURRENT_BEAM_VERSION=$(mvn help:evaluate -Dexpression=beam.version -q -DforceStdout)
@@ -69,10 +69,12 @@ jobs:
6969
7070 echo "beam_snapshot_version=$BEAM_SNAPSHOT_VERSION" >> $GITHUB_OUTPUT
7171 shell : bash
72+ env :
73+ GITHUB_EVENT_INPUTS_SNAPSHOT_VERSION : ${{ github.event.inputs.snapshot_version }}
7274
7375 - name : Update pom.xml for Beam Snapshot
7476 run : |
75- SNAPSHOT_VERSION="${{ steps.calculate_beam_snapshot.outputs.beam_snapshot_version } }"
77+ SNAPSHOT_VERSION="${STEPS_CALCULATE_BEAM_SNAPSHOT_OUTPUTS_BEAM_SNAPSHOT_VERSION }"
7678 echo "Updating pom.xml to use Beam version: $SNAPSHOT_VERSION"
7779
7880 # 1. Update Beam version
98100 echo "Final pom.xml changes:"
99101 git diff pom.xml.bak # Show changes against the original .bak file created by sed
100102 shell : bash
103+ env :
104+ STEPS_CALCULATE_BEAM_SNAPSHOT_OUTPUTS_BEAM_SNAPSHOT_VERSION : ${{ steps.calculate_beam_snapshot.outputs.beam_snapshot_version }}
101105
102106 - name : Run Build
103107 run : ./cicd/run-build
You can’t perform that action at this time.
0 commit comments