Skip to content

fetch-chrome-webstore-access-token #5

fetch-chrome-webstore-access-token

fetch-chrome-webstore-access-token #5

Workflow file for this run

name: "fetch-chrome-webstore-access-token"
on:
schedule:
- cron: '0 3 2 * *' # At 03:00 on day-of-month 2
jobs:
check-secret:
runs-on: ubuntu-latest
outputs:
secrets: ${{ steps.key-check.outputs.defined }}
steps:
- name: Check for Secret availability
id: key-check
shell: bash
run: |
if [ "${{ secrets.CHROME_CLIENT_ID }}" != '' ]; then
echo "defined=true" >> $GITHUB_OUTPUT;
else
echo "defined=false" >> $GITHUB_OUTPUT;
fi
fetchToken:
runs-on: ubuntu-latest
needs: [check-secret]
if: needs.check-secret.outputs.secrets == 'true'
steps:
- uses: cardinalby/google-api-fetch-token-action@v1
with:
clientId: ${{ secrets.CHROME_CLIENT_ID }}
clientSecret: ${{ secrets.CHROME_CLIENT_SECRET }}
refreshToken: ${{ secrets.CHROME_REFRESH_TOKEN }}