Skip to content
power

GitHub Action

PSN Trophies

v0.1.5 Latest version

PSN Trophies

power

PSN Trophies

Adds your PlayStation Trophies to your README

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PSN Trophies

uses: sleeping-winds/[email protected]

Learn more about this action in sleeping-winds/psn-trophies-action

Choose a version

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