From b65838725ebbb14d6506eaea4af5f4ed712d723b Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Thu, 26 Sep 2024 17:28:01 -0400 Subject: [PATCH] [ci] Fix incorrect sha / commit messages in manual Meta builds ghstack-source-id: 0790b32d293f7b528e458cb4b8718d8c2c422dab Pull Request resolved: https://github.com/facebook/react/pull/31083 --- .github/workflows/runtime_commit_artifacts.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/runtime_commit_artifacts.yml b/.github/workflows/runtime_commit_artifacts.yml index 6ff1bdb5a638d..b8b21eb288d40 100644 --- a/.github/workflows/runtime_commit_artifacts.yml +++ b/.github/workflows/runtime_commit_artifacts.yml @@ -82,7 +82,7 @@ jobs: working-directory: scripts/release - name: Download artifacts for base revision run: | - GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ inputs.commit_sha || github.sha }} + GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha }} - name: Display structure of build run: ls -R build - name: Strip @license from eslint plugin and react-refresh @@ -245,9 +245,9 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: | - ${{ github.event.workflow_run.head_commit.message || 'No commit message' }} + ${{ github.event.workflow_run.head_commit.message || format('Manual build of {0}', github.event.workflow_run.head_sha || github.sha) }} - DiffTrain build for [${{ github.sha }}](https://github.com/facebook/react/commit/${{ github.sha }}) + DiffTrain build for [${{ github.event.workflow_run.head_sha || github.sha }}](https://github.com/facebook/react/commit/${{ github.event.workflow_run.head_sha || github.sha }}) branch: builds/facebook-www commit_user_name: ${{ github.triggering_actor }} commit_user_email: ${{ format('{0}@users.noreply.github.com', github.triggering_actor) }} @@ -412,9 +412,9 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: | - ${{ github.event.workflow_run.head_commit.message || 'No commit message' }} + ${{ github.event.workflow_run.head_commit.message || format('Manual build of {0}', github.event.workflow_run.head_sha || github.sha) }} - DiffTrain build for [${{ github.sha }}](https://github.com/facebook/react/commit/${{ github.sha }}) + DiffTrain build for [${{ github.event.workflow_run.head_sha || github.sha }}](https://github.com/facebook/react/commit/${{ github.event.workflow_run.head_sha || github.sha }}) branch: builds/facebook-fbsource commit_user_name: ${{ github.triggering_actor }} commit_user_email: ${{ format('{0}@users.noreply.github.com', github.triggering_actor) }}