change tag format

pull/24/head
Cullen Watson 2023-08-28 08:11:57 -05:00
parent 971feab94a
commit 55643f40f8
2 changed files with 6 additions and 2 deletions

View File

@ -35,7 +35,9 @@ jobs:
tags: ghcr.io/${{ github.repository_owner }}/${{ env.REPO_NAME_LOWER }}/jobspy_api:latest
- name: Set Release Tag Name
run: echo "RELEASE_TAG=${{ github.ref }}-$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
run: |
TAG_NAME=$(echo ${{ github.ref }} | sed -e 's/refs\/heads\///' -e 's/\//-/g')
echo "RELEASE_TAG=${TAG_NAME}-$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Create Release
id: create_release

View File

@ -26,7 +26,9 @@ class CSVFormatter:
secret_dict = json.loads(GSHEET_SECRET_JSON)
credentials = Credentials.from_service_account_info(secret_dict, scopes=scope)
credentials = Credentials.from_service_account_info(
secret_dict, scopes=scope
)
gc = gspread.authorize(credentials)
sh = gc.open(GSHEET_NAME)