Post Generator #945
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Post Generator | |
on: | |
workflow_dispatch: # Manual trigger | |
schedule: | |
- cron: "*/30 * * * *" # Runs every 30 minutes | |
jobs: | |
post-generator: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Public Repo | |
uses: actions/checkout@v4 | |
- name: Clone Private Repo | |
env: | |
GH_TOKEN: ${{ secrets.GH_PAT }} | |
run: | | |
git clone https://[email protected]/iArchitSharma/thebrief-post-generator.git | |
cd thebrief-post-generator | |
- name: Install Dependencies | |
run: | | |
cd thebrief-post-generator | |
npm install | |
npm install puppeteer --save | |
- name: Run Generator Script | |
run: | | |
cd thebrief-post-generator | |
node index.js |