Skip to content

Update publish.json with new image #398

Update publish.json with new image

Update publish.json with new image #398

name: Post to Instagram
on:
workflow_dispatch: # Manual trigger
push:
paths:
- 'publish.json' # Trigger if this file is updated
jobs:
post-to-instagram:
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-insta-uploader.git
cd thebrief-insta-uploader
- name: Install Dependencies
run: |
cd thebrief-insta-uploader
npm install
- name: Run Instagram Posting Script
run: |
cd thebrief-insta-uploader
node index.js