diff --git a/.github/workflows/update_google_sheet_members.yml b/.github/workflows/update_google_sheet_members.yml index 8a0c81e5..1c7283fc 100644 --- a/.github/workflows/update_google_sheet_members.yml +++ b/.github/workflows/update_google_sheet_members.yml @@ -2,12 +2,15 @@ name: Update the google sheet with members on: workflow_dispatch: - # schedule: - # Updates every 00:00 every day - # - cron: "0 0 * * *" + schedule: + # Updates every 00:00 every day + - cron: "0 0 * * *" env: NEXT_PUBLIC_BACKEND_BASE_URL: ${{secrets.VITE_BACKEND_BASE_URL}} + GOOGLE_SHEET_ID: ${{secrets.GOOGLE_SHEET_ID}} + GOOGLE_SERVICE_ACCOUNT_JSON: ${{secrets.GOOGLE_SERVICE_ACCOUNT_JSON}} + VITE_BACKEND_BASE_URL: ${{secrets.VITE_BACKEND_BASE_URL}} jobs: update_google_sheet_members: @@ -22,13 +25,6 @@ jobs: - name: Install volta uses: volta-cli/action@v4 - - name: Get admin jwt token - id: get-admin-jwt - run: | - token_output=`yarn workspace server run token` - IFS=$'\n' read -d "\034" -r -a splitted <<<"${token_output}\034" - echo "jwt_token=$(echo ${splitted[2]})" >> $GITHUB_OUTPUT - - name: Update google sheet members with script run: | - yarn workspace server update-google-sheet-members ${{ steps.get-admin-jwt.outputs.jwt_token }} + yarn workspace server update-google-sheet-members