diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9e2c57..fb677ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,8 @@ on: jobs: build: runs-on: ubuntu-latest + outputs: + COMMIT: ${{ steps.build.outputs.COMMIT }} steps: - name: Checkout uses: actions/checkout@v4 @@ -29,12 +31,13 @@ jobs: - name: Install dependencies run: npm install - name: Build project + id: build run: | COMMIT=$(git rev-parse --short HEAD) export REACT_APP_CONTAINERUP_BUILD=${BUILD_NUM} export REACT_APP_CONTAINERUP_COMMIT=${COMMIT} - echo BUILD=${REACT_APP_CONTAINERUP_BUILD} - echo COMMIT=${REACT_APP_CONTAINERUP_COMMIT} + echo REACT_APP_CONTAINERUP_BUILD=${BUILD_NUM} + echo REACT_APP_CONTAINERUP_COMMIT=${COMMIT} echo "COMMIT=${COMMIT}" >> ${GITHUB_OUTPUT} npm run build env: