Skip to content

Commit

Permalink
👷 force push github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianNymark committed Jan 24, 2024
1 parent 01d422b commit 2b23f6a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/update-article-views.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Update article views
on:
workflow_dispatch:
# schedule:
# # 12.00 every day
# - cron: "0 0 * * *"
jobs:
execute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: gp-popular-articles # TODO: remove once merged
fetch-depth: 1
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Restore cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-
- name: add tokens to .env
run: |
echo "SANITY_WRITE_KEY=${{ secrets.SANITY_UTILITY_WRITE }}" >> scripts/article-views/.env
- name: Install dependencies
run: deno run --allow-net --allow-read --allow-env --no-config scripts/article-views/update-article-views/main.ts

0 comments on commit 2b23f6a

Please sign in to comment.