-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from allan-gadelha/main
Analytics API and GitHub Actions Workflow!
- Loading branch information
Showing
9 changed files
with
1,249 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Run report | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 1 * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run report | ||
run: python google-analytics/report_github_actions.py | ||
env: | ||
SERVICE_ACCOUNT_CREDENTIALS: ${{ secrets.SERVICE_ACCOUNT_CREDENTIALS }} | ||
PROPERTY_ID: ${{ secrets.PROPERTY_ID }} | ||
TOKEN_PICKLE: ${{ secrets.TOKEN_PICKLE }} | ||
OAUTH_CREDENTIALS: ${{ secrets.OAUTH_CREDENTIALS }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# .gitignore | ||
service_account.json | ||
google-analytics/service_account.json | ||
google-analytics/token.pickle | ||
google-analytics/oauth_credentials.json | ||
google-analytics/report.py | ||
google-analytics/minify.py | ||
data/website_info.json | ||
data/website_dimensions_info.json | ||
data/pages_info.json |
Oops, something went wrong.