Skip to content

Commit 19176e3

Browse files
authored
[ci] Use correct revision for Meta builds (facebook#32680)
There was a bug previously in our commit artifacts step where the emitted REVISION hash would reference the commit on the builds branch rather than from `main`. Given that our internal manual sync script also does this, let's align them both to always reference the commit from `main` instead. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32680). * __->__ facebook#32680 * facebook#32679 * facebook#32678
1 parent d16c26d commit 19176e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/runtime_commit_artifacts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ jobs:
151151
ls -R ./compiled-rn
152152
- name: Add REVISION files
153153
run: |
154-
echo ${{ github.sha }} >> ./compiled/facebook-www/REVISION
154+
echo ${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha }} >> ./compiled/facebook-www/REVISION
155155
cp ./compiled/facebook-www/REVISION ./compiled/facebook-www/REVISION_TRANSFORMS
156-
echo ${{ github.sha}} >> ./compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION
156+
echo ${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha }} >> ./compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION
157157
- name: "Get current version string"
158158
id: get_current_version
159159
run: |

0 commit comments

Comments
 (0)