Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.12 KB

README.md

File metadata and controls

45 lines (32 loc) · 1.12 KB

psn-trophies-action

Add PlayStation trophies to your profile README.

Setup

  1. 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.

  1. You will need to get an authentication token from PlayStation. Sign into PlayStation's homepage. Then visit here to get your SSO cookie.

  2. Create a secret so that this action can use it.

Example

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/[email protected]
        with:
          NPSSO: ${{ secrets.NPSSO }}

      - name: Check in updated README
        uses: EndBug/add-and-commit@v9