Skip to content

Update Surveys Sheet v3 #618

Update Surveys Sheet v3

Update Surveys Sheet v3 #618

# This is a basic workflow to help you get started with Actions
name: Update Surveys Sheet v3
# description: manage the public CDN
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-surveys:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: install node packages
run: yarn install
- name: Update Surveys
run: yarn crawl-surveys
env:
DB_SURVEY_READ_URL: ${{secrets.DB_SURVEY_READ_URL}}
DB_SURVEY_WRITE_URL: ${{secrets.DB_SURVEY_WRITE_URL}}
APP_AWS_BUCKET: ${{secrets.APP_AWS_BUCKET}}
APP_AWS_REGION: ${{secrets.APP_AWS_REGION}}
APP_AWS_ACCOUNT_ID: ${{secrets.APP_AWS_ACCOUNT_ID}}
APP_AWS_ACCESS_KEY_ID: ${{secrets.APP_AWS_ACCESS_KEY_ID}}
APP_AWS_SECRET_ACCESS_KEY: ${{secrets.APP_AWS_SECRET_ACCESS_KEY}}
- name: timestamp update
run: yarn timestamp-update
env:
TIMESTAMP_PATH: ./scripts/surveys-last-run.txt
- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Atlas Bot"
git add -A
git commit -m "Update Surveys [skip ci]" -a
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main