Skip to content

Commit

Permalink
Merge pull request #1 from allan-gadelha/main
Browse files Browse the repository at this point in the history
Analytics API and GitHub Actions Workflow!
  • Loading branch information
endersonmenezes authored Feb 6, 2024
2 parents edb21e4 + 3800b6d commit f030062
Show file tree
Hide file tree
Showing 9 changed files with 1,249 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/report.yaml
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 }}
10 changes: 10 additions & 0 deletions .gitignore
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
Loading

0 comments on commit f030062

Please sign in to comment.