reinstate sgp-nc-1 node #7
Workflow file for this run
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 planets config | |
on: | |
workflow_dispatch: | |
pull_request_target: | |
paths: | |
- planets/index.json | |
branches: | |
- main | |
types: | |
- closed | |
jobs: | |
validate-planets-config: | |
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
uses: ./.github/workflows/validate-planets.yaml | |
update-planets-config: | |
needs: [validate-planets-config] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-2 | |
- run: | | |
aws s3 cp planets/index.json s3://planets.nine-chronicles.com/planets/index.json | |
aws cloudfront create-invalidation --distribution-id EP1JH2OWQMIKM --paths "/*" |