Update README #390
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update README | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run at 6AM UTC, i.e 10PM Los Angeles (Pacific) timezone | |
- cron: '0 6 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Compile TypeScript | |
run: npm run build | |
- name: Update README.md | |
run: node src/index.js | |
env: | |
PSN_NPSSO_TOKEN: ${{ secrets.PSN_NPSSO_TOKEN }} | |
STEAM_ID: ${{ secrets.STEAM_ID }} | |
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- uses: mikeal/publish-to-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH_NAME: 'main' |