Skip to content

linkedin

linkedin #94

Workflow file for this run

name: linkedin
on:
schedule:
- cron: '12 13 * * 1'
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: Post to LinkedIn.
run: Rscript runner-li.R
- name: Save post ID.
uses: actions/upload-artifact@v4
with:
name: li_post_id
path: li_post_id.rds