Skip to content

Commit

Permalink
Added gh token (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmitrovicTT authored Nov 22, 2024
1 parent 4ceefdc commit 3ab87ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/nightly-uplift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
TT_METAL_SUBMODULE_PATH: third_party/tt-metal

steps:

- uses: actions/checkout@v4
with:
submodules: recursive
Expand All @@ -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
Expand Down

0 comments on commit 3ab87ad

Please sign in to comment.