Skip to content

Commit

Permalink
⚗️ experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
mickm3n committed Jul 23, 2024
1 parent e2ccad6 commit 91eeea6
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/daily-view-count-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ jobs:
update-data:
runs-on: ubuntu-latest
steps:
uses: actions/checkout@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip' # caching pip dependencies
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip' # caching pip dependencies

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Run Google Analytics data retrieval script
run: python scripts/fetch_google_analytics_view_counts.py
env:
GOOGLE_APPLICATION_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}
- name: Run Google Analytics data retrieval script
run: python scripts/fetch_google_analytics_view_counts.py
env:
GOOGLE_APPLICATION_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}

- name: Run update top posts script
run: python scripts/update_top_posts.py # Replace with your actual script name
- name: Run update top posts script
run: python scripts/update_top_posts.py # Replace with your actual script name

- name: Commit and push if changed
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add -A
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-update analytics and top posts" && git push)
- name: Commit and push if changed
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add -A
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-update analytics and top posts" && git push)

0 comments on commit 91eeea6

Please sign in to comment.