Skip to content

Update IBC Support #489

Update IBC Support

Update IBC Support #489

Workflow file for this run

name: Update IBC Support
on:
push:
branches: [main]
schedule:
- cron: "0 0 * * *"
jobs:
s3:
name: Update s3 objects
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout Repo
uses: actions/checkout@v3
- name: ⎔ Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: 📥 Get Deps
run: npm install
- name: 💽 Fetch Data
run: npm run fetch
- name: 📤 Update S3 objects
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
SOURCE_DIR: "data"
DEST_DIR: "ibc-support-db"
- name: 🌩️ Invalidate CloudFront cache
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION }}
PATHS: "/ibc-support-db/*"
AWS_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}