mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-05 07:14:27 +01:00
Make spreadsheet dynamic based on branch name (#181)
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -206,3 +206,4 @@ jobs:
|
||||
fi
|
||||
env:
|
||||
GDRIVE_BASE64: ${{ secrets.GDRIVE_BASE64 }}
|
||||
GITHUB_REF_NAME: ${{ github.ref_name }}
|
||||
|
||||
@@ -94,7 +94,8 @@ creds = ServiceAccountCredentials.from_json_keyfile_dict(creds_info, scope)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user