Update Data for OT #10
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 Data for OT | |
on: | |
schedule: | |
- cron: '23 01 01 3,6,9,12 *' | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' # Specify the Node.js version you need | |
- name: Upload | |
env: | |
ELASTIC_HOST: ${{ secrets.TF_VAR_ELASTIC_HOST }} | |
ELASTIC_PASSWORD: ${{ secrets.TF_VAR_ELASTIC_PASSWORD }} | |
ELASTIC_USERNAME: ${{ secrets.TF_VAR_ELASTIC_USERNAME }} | |
ELASTIC_PORT: 443 | |
ELASTIC_PROTOCOL: https | |
NODE_ENV: production | |
ADDRESSR_ENABLE_GEO: 1 | |
DEBUG: error,api,express:*,swagger-tools*,test,es | |
run: | | |
set -x | |
npm run gen-install-cmd | |
chmod +x ./install.sh | |
./install.sh | |
env | grep -E '^(ELASTIC)_' | |
COVERED_STATES=OT NODE_OPTIONS=--max_old_space_size=8196 addressr-loader | |
set +x | |
# call-reusable-workflow: | |
# uses: ./.github/workflows/reusable-update.yml | |
# with: | |
# state: OT |