Skip to content

Sync Destiny manifest to KV store #281

Sync Destiny manifest to KV store

Sync Destiny manifest to KV store #281

Workflow file for this run

name: Sync Destiny manifest to KV store
on:
push:
workflow_dispatch:
env:
CACHE_PATH: manifest-cache
jobs:
check-manifest:
name: Download and sync
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- name: Install node dependencies
run: npm install --no-audit
- name: Set required actions environment variables
uses: actions/github-script@v6
id: env
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL);
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN);
- name: Do the deed
id: manifest
env:
ACTIONS_CACHE_URL: ${{ env.ACTIONS_CACHE_URL }}
ACTIONS_RUNTIME_TOKEN: ${{ env.ACTIONS_RUNTIME_TOKEN }}
BUNGIE_API_KEY: ${{ secrets.BUNGIE_API_KEY }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_NAMESPACE_ID: ${{ secrets.CLOUDFLARE_NAMESPACE_ID }}
SERVER_URL: ${{ secrets.SERVER_URL }}
run: node src/downloadManifest.mjs