Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Make spreadsheet dynamic #181

Merged
merged 3 commits into from
Jul 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,4 @@ jobs:
fi
env:
GDRIVE_BASE64: ${{ secrets.GDRIVE_BASE64 }}
GITHUB_REF_NAME: ${{ github.ref_name }}
3 changes: 2 additions & 1 deletion send_to_googledrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
client = gspread.authorize(creds)

# Get the instance of the Spreadsheet
sheet = client.open("benchmark")
branch_name = os.getenv("GITHUB_REF_NAME")
sheet = client.open(f"benchmark-{branch_name}")

# Get the first sheet of the Spreadsheet
sheet_instance = sheet.get_worksheet(0)
Expand Down