Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Fix weekly update workflow (#863)

Dhruv Bhanushali28574c418513
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index a953a54c0..98256f177 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -84,12 +84,7 @@ jobs:
# Python is not needed to run pre-commit.
setup_python: false
# Node.js is needed by lint actions.
- install_recipe: ""
- # Need more complex install recipe.
-
- - name: Install dependencies
- run: |
- just node-install
+ install_recipe: "node-install"
- name: Cache pre-commit envs
uses: actions/cache@v3
diff --git a/.github/workflows/weekly_updates.yml b/.github/workflows/weekly_updates.yml
index c45043395..e7cdd8bf7 100644
--- a/.github/workflows/weekly_updates.yml
+++ b/.github/workflows/weekly_updates.yml
@@ -16,34 +16,15 @@ jobs:
name: Create post on Make site
runs-on: ubuntu-latest
steps:
- - uses: pnpm/[email protected]
- with:
- # Ensure that this value matches `packageManager` field.
- version: 7.17.1
-
- - name: Cache pnpm modules
- uses: actions/cache@v3
- with:
- path: ~/.local/share/pnpm/store
- key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- restore-keys: |
- ${{ runner.os }}-
-
- name: Checkout repository
uses: actions/checkout@v3
- - name: Setup Node.js
- uses: actions/setup-node@v3
+ - name: Setup CI env
+ uses: ./.github/actions/setup-env
with:
- node-version: 16
- cache: pnpm
- cache-dependency-path: |
- pnpm-lock.yaml
- .npmrc
-
- - name: Install dependencies
- working-directory: ./automations/js
- run: "pnpm install"
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ setup_python: false
+ install_recipe: node-install
- name: Create draft post
run: just automations/js/report