Skip to content

Commit 3336e86

Browse files
committed
2 parents 461e855 + b21533c commit 3336e86

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Linkedin-RSS
2+
Post the latest post from your RSS Feed to your LinkedIn Profile
3+
4+
5+
## How to use
6+
7+
1. Create a folder named .github and create a workflows folder inside it, if it doesn't exist.
8+
9+
2. Create a new .yml file with the following contents inside the workflows folder:
10+
11+
```yaml
12+
name: Linkedin blog post workflow
13+
on:
14+
schedule: # Run workflow automatically
15+
- cron: '0 * * * *' # Runs every hour, on the hour
16+
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the GitHub Actions Workflow page directly
17+
18+
jobs:
19+
linkedin_rss_job:
20+
runs-on: ubuntu-latest
21+
name: Post Latest RSS Post to Linkedin
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
- name: Get Latest Post / Post On Linkedin
26+
uses: Arisamiga/Linkedin-RSS@master
27+
with:
28+
feed_list: # Url of RSS
29+
ln_access_token: # Url of LinkedIn Access Token
30+
embed_image: # Url of embed image
31+
```
32+
Add on the above `feed_list` your own RSS feed URL.
33+
34+
Add on the above `ln_access_token` your LinkedIn Access Token.
35+
36+
(Optional) Add a url of a image on `embed_image` that you would like to use as a image in your embed
37+
38+
## How to get your LinkedIn Access Token
39+
40+
Register the app in [LinkedIn Developer Network](https://developer.linkedin.com/)
41+
42+
+ Go to LinkedIn Developer Network and create an app;
43+
+ Select `Test University` or `PersonalDev` can be used as the company associated with the app without verification;
44+
45+
#
46+
47+
+ Once you made your Application go to your App and go to "Products"
48+
+ From there Select "Share on LinkedIn" and "Sign In with LinkedIn" and "Request Access" For both of them
49+
50+
51+
#
52+
53+
+ Once you have added your Products go to https://www.linkedin.com/developers/tools/oauth/
54+
+ Select "Create a new access token" and click "Create Token" Select your app and make sure you have the r_liteprofile, w_member_social scopes selected.
55+
+ Press "Request Access Token" and you will be asked to login. After Successfully logging in you will be given your Access Token.
56+
57+
# Notices
58+
59+
**I suggest for your ln_access_token you use a Github Secret. (Whats a Github Secret check here https://docs.github.com/en/actions/security-guides/encrypted-secrets)**
60+
61+
Be aware that if the post has been posted before the action will fail as it cannot post a duplicate post.
62+
63+
Thanks to https://github.com/gfiocco/linkedin-node-api as the LinkedIn Docs are wierd..
64+
65+
## Code and bug reporting
66+
You can open a issue at https://github.com/Arisamiga/Linkedin-RSS

0 commit comments

Comments
 (0)