Data Layering #1148
This file contains hidden or 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: Data Layering | |
| on: | |
| schedule: | |
| - cron: 0 0 * * * | |
| workflow_dispatch: {} | |
| push: | |
| paths: | |
| - .github/workflows/flat.yml | |
| jobs: | |
| scheduled: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@main | |
| with: | |
| deno-version: v1.34.x | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.2.15 | |
| - name: Check out repo | |
| uses: actions/checkout@v2 | |
| - name: Setup ENV Variables | |
| # https://www.base64encode.org/ | |
| run: | | |
| echo ${{ secrets.ACTIONS_ENV }} | base64 -d > ./.env | |
| cat ./.env | |
| - name: Bun Install | |
| run: bun install --frozen-lockfile | |
| - name: Pull MCU Timeline Sheet | |
| run: bun run pull-mcu-timeline-sheet | |
| - name: Fetch data | |
| uses: githubocto/flat@v3 | |
| with: | |
| http_url: https://raw.githubusercontent.com/ThatGuySam/marvelorder/main/README.md | |
| downloaded_filename: flat.txt | |
| postprocess: ./scripts/pull.ts |