fetch-access-token #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The action fetches an access token from Google API. | |
# It can be used to prevent your Refresh Token from being expired. | |
# See https://github.com/cardinalby/google-api-fetch-token-action for more info. | |
name: "fetch-access-token" | |
on: | |
schedule: | |
- cron: "0 3 2 * *" # At 03:00 on day-of-month 2 | |
jobs: | |
fetchToken: | |
runs-on: ubuntu-latest | |
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 }} |