Skip to content

Commit 2c0cd20

Browse files
Copilotmkuratczyk
andauthored
Define reusable VERSION env in oci-make workflow
Agent-Logs-Url: https://github.com/rabbitmq/rabbitmq-server/sessions/f185056e-a842-4759-8a22-0a19522b9c10 Co-authored-by: mkuratczyk <9566114+mkuratczyk@users.noreply.github.com>
1 parent 785d783 commit 2c0cd20

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/oci-make.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ env:
3535
# For workflow_run events github.sha is the default branch HEAD, not the triggering branch HEAD.
3636
# Use the actual branch HEAD SHA in both cases.
3737
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.event.workflow_run.head_sha || github.sha }}
38+
VERSION: 4.3.0+${{ github.event.pull_request.head.sha || github.event.workflow_run.head_sha || github.sha }}
3839
concurrency:
3940
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.workflow_run.head_branch || github.ref }}
4041
cancel-in-progress: true
@@ -72,7 +73,7 @@ jobs:
7273
- name: make package-generic-unix
7374
if: steps.authorized.outputs.authorized == 'true'
7475
run: |
75-
make package-generic-unix PROJECT_VERSION=4.3.0+${{ env.HEAD_SHA }}
76+
make package-generic-unix PROJECT_VERSION=${{ env.VERSION }}
7677
- name: Upload package-generic-unix
7778
if: steps.authorized.outputs.authorized == 'true'
7879
uses: actions/upload-artifact@v7
@@ -137,4 +138,4 @@ jobs:
137138
cache-from: type=gha,scope=${{ matrix.otp_version }}
138139
build-args: |
139140
OTP_VERSION=${{ matrix.otp_version }}
140-
RABBITMQ_VERSION=4.3.0+${{ env.HEAD_SHA }}
141+
RABBITMQ_VERSION=${{ env.VERSION }}

0 commit comments

Comments
 (0)