From 4055efdf4bafddd11127637fd2fbd2bc8f0c2620 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Tue, 25 Mar 2025 00:25:04 -0400 Subject: [PATCH] ci: add commit SHA to build notifications (#712) This change includes the current commit SHA in the workflow outputs of the sunnypilot-build-prebuilt.yaml file. It provides better traceability for builds, ensuring each workflow run is linked to the exact commit it was triggered from. --- .github/workflows/sunnypilot-build-prebuilt.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sunnypilot-build-prebuilt.yaml b/.github/workflows/sunnypilot-build-prebuilt.yaml index cbe2b73be3..6bd72ef50e 100644 --- a/.github/workflows/sunnypilot-build-prebuilt.yaml +++ b/.github/workflows/sunnypilot-build-prebuilt.yaml @@ -38,6 +38,7 @@ jobs: new_branch: ${{ steps.set-env.outputs.new_branch }} version: ${{ steps.set-env.outputs.version }} extra_version_identifier: ${{ steps.set-env.outputs.extra_version_identifier }} + commit_sha: ${{ steps.set-env.outputs.commit_sha }} steps: - uses: actions/checkout@v4 with: @@ -94,6 +95,7 @@ jobs: echo "new_branch=$NEW_BRANCH" >> $GITHUB_OUTPUT [[ ! -z "$EXTRA_VERSION_IDENTIFIER" ]] && echo "extra_version_identifier=$EXTRA_VERSION_IDENTIFIER" >> $GITHUB_OUTPUT [[ ! -z "$VERSION" ]] && echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "commit_sha=${{ github.sha }}" >> $GITHUB_OUTPUT # Set up common environment source /etc/profile;