From 345e313ba4e5034c114c05232500117f78108939 Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Wed, 19 Jun 2024 11:37:23 +0100 Subject: [PATCH] [RN][CI] use correct has to label hermes cache key This incorrectly used the SHA from facebook/react-native instead of facebook/hermes to label the hermes cache key. This would bloat our cache by ~ 1.2GB for each PR. Changelog: [Internal] --- .github/workflows/nightly.yml | 2 +- .github/workflows/publish-release.yml | 2 +- .github/workflows/test-all.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 76de850c9a4..05524352f12 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -48,7 +48,7 @@ jobs: else echo "Hermes Version file not found!!!" echo "Using the last commit from main for the build:" - HERMES_TAG_SHA=$(git ls-remote https://github.com/$GITHUB_REPOSITORY main | cut -f 1 | tr -d '[:space:]') + HERMES_TAG_SHA=$(git ls-remote https://github.com/facebook/hermes main | cut -f 1 | tr -d '[:space:]') echo "VERSION=$HERMES_TAG_SHA" >> "$GITHUB_OUTPUT" fi echo "Hermes commit is $HERMES_TAG_SHA" diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index af1f66a8f6a..257c019a975 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -45,7 +45,7 @@ jobs: else echo "Hermes Version file not found!!!" echo "Using the last commit from main for the build:" - HERMES_TAG_SHA=$(git ls-remote https://github.com/$GITHUB_REPOSITORY main | cut -f 1 | tr -d '[:space:]') + HERMES_TAG_SHA=$(git ls-remote https://github.com/facebook/hermes main | cut -f 1 | tr -d '[:space:]') echo "VERSION=$HERMES_TAG_SHA" >> "$GITHUB_OUTPUT" fi echo "Hermes commit is $HERMES_TAG_SHA" diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index 3e782d74649..246b0e04f22 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -55,7 +55,7 @@ jobs: else echo "Hermes Version file not found!!!" echo "Using the last commit from main for the build:" - HERMES_TAG_SHA=$(git ls-remote https://github.com/$GITHUB_REPOSITORY main | cut -f 1 | tr -d '[:space:]') + HERMES_TAG_SHA=$(git ls-remote https://github.com/facebook/hermes main | cut -f 1 | tr -d '[:space:]') echo "VERSION=$HERMES_TAG_SHA" >> "$GITHUB_OUTPUT" fi echo "Hermes commit is $HERMES_TAG_SHA"