[ci] Fix incorrect sha / commit messages in manual Meta builds
ghstack-source-id: 0790b32d293f7b528e458cb4b8718d8c2c422dab Pull Request resolved: https://github.com/facebook/react/pull/31083
Lauren Tan committed
Sep 26, 2024 at 17:28 UTC
d34da5cdb9266ba7928f78107c87383ae211f0f9
1 file changed
+5
-5
.github/workflows/runtime_commit_artifacts.yml
+5
-5
@@ -82,7 +82,7 @@ jobs:
82
working-directory: scripts/release
83
- name: Download artifacts for base revision
84
run: |
85
- GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ inputs.commit_sha || github.sha }}
85
+ GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha }}
86
- name: Display structure of build
87
run: ls -R build
88
- name: Strip @license from eslint plugin and react-refresh
@@ -245,9 +245,9 @@ jobs:
245
uses: stefanzweifel/git-auto-commit-action@v5
246
with:
247
commit_message: |
248
- ${{ github.event.workflow_run.head_commit.message || 'No commit message' }}
248
+ ${{ github.event.workflow_run.head_commit.message || format('Manual build of {0}', github.event.workflow_run.head_sha || github.sha) }}
249
250
- DiffTrain build for [${{ github.sha }}](https://github.com/facebook/react/commit/${{ github.sha }})
250
+ 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 }})
251
branch: builds/facebook-www
252
commit_user_name: ${{ github.triggering_actor }}
253
commit_user_email: ${{ format('{0}@users.noreply.github.com', github.triggering_actor) }}
@@ -412,9 +412,9 @@ jobs:
412
uses: stefanzweifel/git-auto-commit-action@v5
413
with:
414
commit_message: |
415
- ${{ github.event.workflow_run.head_commit.message || 'No commit message' }}
415
+ ${{ github.event.workflow_run.head_commit.message || format('Manual build of {0}', github.event.workflow_run.head_sha || github.sha) }}
416
417
- DiffTrain build for [${{ github.sha }}](https://github.com/facebook/react/commit/${{ github.sha }})
417
+ 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 }})
418
branch: builds/facebook-fbsource
419
commit_user_name: ${{ github.triggering_actor }}
420
commit_user_email: ${{ format('{0}@users.noreply.github.com', github.triggering_actor) }}