Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/run-it-tests-beam-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading