From 231450a438f1aa64ef6dfecc4fe9a23231ba84af Mon Sep 17 00:00:00 2001 From: Amro Misbah Date: Tue, 7 Jan 2025 10:34:50 +0200 Subject: [PATCH] fix(actions): immutable github sha instead of github head_ref Signed-off-by: Amro Misbah --- .github/workflows/build-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 0142d4bc5b4..938008fdfe9 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -146,7 +146,8 @@ jobs: - name: Build ${{ matrix.service }} run: | if [ "${{ github.event_name }}" == "pull_request" ]; then - mvn -f ${{ matrix.service }}/pom.xml -Dcfg=${{ env.PROFILE_NAME }} -Dmaven.test.skip=${{ matrix.maven_skip_tests }} clean install -Drevision=${{ github.head_ref }}-nightly + revision=${{ github.sha }}-nightly + mvn -f ${{ matrix.service }}/pom.xml -Dcfg=${{ env.PROFILE_NAME }} -Dmaven.test.skip=${{ matrix.maven_skip_tests }} clean install -Drevision=$revision else mvn -f ${{ matrix.service }}/pom.xml -Dcfg=${{ env.PROFILE_NAME }} -Dmaven.test.skip=${{ matrix.maven_skip_tests }} clean install fi