diff --git a/.github/workflows/run-it-tests-beam-snapshots.yml b/.github/workflows/run-it-tests-beam-snapshots.yml index f54a8cb853..2f9647aa2e 100644 --- a/.github/workflows/run-it-tests-beam-snapshots.yml +++ b/.github/workflows/run-it-tests-beam-snapshots.yml @@ -50,8 +50,8 @@ jobs: - name: Calculate Next Beam Snapshot Version id: calculate_beam_snapshot run: | - if [ -n "${{ github.event.inputs.snapshot_version }}" ]; then - BEAM_SNAPSHOT_VERSION="${{ github.event.inputs.snapshot_version }}" + if [ -n "${GITHUB_EVENT_INPUTS_SNAPSHOT_VERSION}" ]; then + BEAM_SNAPSHOT_VERSION="${GITHUB_EVENT_INPUTS_SNAPSHOT_VERSION}" echo "Using provided Beam snapshot version: $BEAM_SNAPSHOT_VERSION" else CURRENT_BEAM_VERSION=$(mvn help:evaluate -Dexpression=beam.version -q -DforceStdout) @@ -69,10 +69,12 @@ jobs: echo "beam_snapshot_version=$BEAM_SNAPSHOT_VERSION" >> $GITHUB_OUTPUT shell: bash + env: + GITHUB_EVENT_INPUTS_SNAPSHOT_VERSION: ${{ github.event.inputs.snapshot_version }} - name: Update pom.xml for Beam Snapshot run: | - SNAPSHOT_VERSION="${{ steps.calculate_beam_snapshot.outputs.beam_snapshot_version }}" + SNAPSHOT_VERSION="${STEPS_CALCULATE_BEAM_SNAPSHOT_OUTPUTS_BEAM_SNAPSHOT_VERSION}" echo "Updating pom.xml to use Beam version: $SNAPSHOT_VERSION" # 1. Update Beam version @@ -98,6 +100,8 @@ jobs: echo "Final pom.xml changes:" git diff pom.xml.bak # Show changes against the original .bak file created by sed shell: bash + env: + STEPS_CALCULATE_BEAM_SNAPSHOT_OUTPUTS_BEAM_SNAPSHOT_VERSION: ${{ steps.calculate_beam_snapshot.outputs.beam_snapshot_version }} - name: Run Build run: ./cicd/run-build