Add gh api call for fetching llvm version (#1942)

Fixes #1877
This commit is contained in:
Hritik Gupta
2023-02-08 23:49:07 +00:00
committed by GitHub
parent 3586911333
commit 3d44f11d19
3 changed files with 27 additions and 9 deletions

View File

@ -26,9 +26,13 @@ jobs:
- name: checkout
uses: actions/checkout@v3
- name: install dependencies
run: /usr/bin/env python3 -m pip install -r requirements.txt
working-directory: build-scripts
- name: retrive the last commit ID
id: get_last_commit
run: echo "last_commit=$(/usr/bin/env python3 ./build_llvm.py --llvm-ver)" >> $GITHUB_OUTPUT
run: echo "last_commit=$(GH_TOKEN=${{ secrets.GITHUB_TOKEN }} /usr/bin/env python3 ./build_llvm.py --llvm-ver)" >> $GITHUB_OUTPUT
working-directory: build-scripts
# Bump the prefix number to evict all previous caches and