Billboard Rounds - Create PR to update latest round #5
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: Billboard Rounds - Create PR to update latest round | |
on: workflow_dispatch | |
jobs: | |
create-pull-request: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install Dependencies | |
run: npm install @aws-sdk/client-s3 ## the only dependency for ./bin/sync-up-latest-round.mjs | |
- run: ./bin/sync-up-latest-round.mjs | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: ap-southeast-1 | |
- uses: gr2m/create-or-update-pull-request-action@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.BILLBOARD_GITHUB_TOKEN }} | |
with: | |
path: "public/static" | |
title: check in latest round Assets from 'Create or Update Request' action | |