Add PlayStation trophies to your profile README.
- You need to update the README file with 2 comments.
<!--START_SECTION:psn-->
<!--END_SECTION:psn-->
This action will populate this section with the PlayStation trophies.
-
You will need to get an authentication token from PlayStation. Sign into PlayStation's homepage. Then visit here to get your SSO cookie.
-
Create a secret so that this action can use it.
name: Update PlayStation Trophies
on:
schedule:
# Runs at 0am UTC every day
- cron: "0 0 * * *"
jobs:
update-ps-trophies:
name: Update Readme with PlayStation Trophies
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Add ps trophies
uses: sleeping-winds/psn-trophies-action@v0.1.3
with:
NPSSO: ${{ secrets.NPSSO }}
- name: Check in updated README
uses: EndBug/add-and-commit@v9