From 4c3f92247d1ffae6ee1653059628414e364207d9 Mon Sep 17 00:00:00 2001 From: Tyler Krys Date: Mon, 27 May 2024 11:02:54 -0700 Subject: [PATCH] Use github.sha instead of pull request reference in GitHub Action for building React apps --- .github/workflows/build_react_component_library_apps.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_react_component_library_apps.yaml b/.github/workflows/build_react_component_library_apps.yaml index 4c8f6393..a5a14e53 100644 --- a/.github/workflows/build_react_component_library_apps.yaml +++ b/.github/workflows/build_react_component_library_apps.yaml @@ -27,7 +27,7 @@ jobs: driver-opts: network=host - name: Build image with docker build - run: docker build ./packages/react-components/ -f ./packages/react-components/Dockerfile.storybook -t design-system-react-components-storybook:latest --build-arg GITHUB_SHA=${{ github.event.pull_request.head.sha }} + run: docker build ./packages/react-components/ -f ./packages/react-components/Dockerfile.storybook -t design-system-react-components-storybook:latest --build-arg GITHUB_SHA=${{ github.sha }} - name: Login to OpenShift Silver image registry uses: docker/login-action@v3