From 3ab87adc0c9e9c1eb6d6aa6eda8eb3bd78fbd458 Mon Sep 17 00:00:00 2001 From: Kristijan Mitrovic Date: Fri, 22 Nov 2024 14:17:08 +0100 Subject: [PATCH] Added gh token (#1381) --- .github/workflows/nightly-uplift.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly-uplift.yml b/.github/workflows/nightly-uplift.yml index bace8c9ff..332044a02 100644 --- a/.github/workflows/nightly-uplift.yml +++ b/.github/workflows/nightly-uplift.yml @@ -16,7 +16,6 @@ jobs: TT_METAL_SUBMODULE_PATH: third_party/tt-metal steps: - - uses: actions/checkout@v4 with: submodules: recursive @@ -28,14 +27,13 @@ jobs: echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - name: Fetch latest SHA of tt-metal submodule - id: get_sha + env: + GH_TOKEN: ${{ github.token }} run: | LATEST_TT_METAL_VERSION=$(gh api repos/tenstorrent/tt-mlir/commits/main --jq '.sha') echo "LATEST_TT_METAL_VERSION=$LATEST_TT_METAL_VERSION" >> $GITHUB_ENV - name: Update tt-metal reference in third_party/CMakeLists.txt - env: - GH_TOKEN: ${{ github.token }} run: | echo "Updating tt-mlir to SHA: ${{ env.LATEST_TT_METAL_VERSION }}" sed -i "s/set(TT_METAL_VERSION \".*\")/set(TT_METAL_VERSION \"${{ env.LATEST_TT_METAL_VERSION }}\")/" third_party/CMakeLists.txt