1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-01-17 22:28:32 +01:00
developer-roadmap/.github/workflows/refresh-roadmap-content-json.yml
2024-08-14 20:26:53 +06:00

46 lines
1.2 KiB
YAML

name: Refreshes roadmap content JSON
on:
workflow_dispatch: # allow manual run
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
upgrade-deps:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies and generate content JSON
run: |
pnpm install
npm run generate:roadmap-content-json
- name: Create PR
uses: peter-evans/create-pull-request@v4
with:
delete-branch: false
branch: "chore/update-content-json"
base: "master"
labels: |
dependencies
automated pr
reviewers: kamranahmedse,arikchakma
commit-message: "chore: update roadmap content json"
title: "Update roadmap content json"
body: |
Updates the roadmap content JSON files in the `public` folder.
Please review the changes and merge if everything looks good.