Skip to content

sleeping-winds/psn-trophies-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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