Skip to content

relinkedin

relinkedin #1

Workflow file for this run

name: relinkedin
on:
schedule:
- cron: '30 12 * * 2'
workflow_dispatch:
jobs:
post:
runs-on: windows-latest
env:
LI_CLIENT_ID: ${{ secrets.LI_CLIENT_ID}}
LI_CLIENT_SECRET: ${{ secrets.LI_CLIENT_SECRET}}
LI_REFRESH_TOKEN: ${{ secrets.LI_REFRESH_TOKEN}}
GITHUB_PAT: ${{ secrets.GH_PAT }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: 'renv'
- uses: r-lib/actions/setup-renv@v2
with:
cache-version: 2
- name: Load post ID.
uses: actions/download-artifact@v4
with:
name: li_post_id
path: li_post_id.rds
- name: Repost on LinkedIn.
run: Rscript dslc-relink.R