Sync LinkedIn Data to Supabase #54
This file contains hidden or 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: Sync LinkedIn Data to Supabase | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Runs automatically every day at midnight | |
| workflow_dispatch: # Allows you to run it manually anytime from the Actions tab | |
| jobs: | |
| run-scraper: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Install Dependencies | |
| run: | | |
| npm install | |
| - name: Execute Posts Sync Script | |
| env: | |
| SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
| SUPABASE_SECRET_KEY: ${{ secrets.SUPABASE_SECRET_KEY }} | |
| APIFY_API_GET_LAST: ${{ secrets.APIFY_API_GET_LAST }} | |
| run: | | |
| node scraper/get_linkedin_posts.js | |
| - name: Execute Profile Sync Script | |
| env: | |
| SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
| SUPABASE_SECRET_KEY: ${{ secrets.SUPABASE_SECRET_KEY }} | |
| APIFY_API_GET_PROFILE: ${{ secrets.APIFY_API_GET_PROFILE }} | |
| run: | | |
| node scraper/update_linkedin_profile.js |