From e75cb1affa1f085cd1f65509c3221b2c3d7a549a Mon Sep 17 00:00:00 2001 From: hz Date: Tue, 21 Sep 2021 19:54:10 +0200 Subject: [PATCH] added automation to activate accounts --- .github/workflows/activate-accounts.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/activate-accounts.yml diff --git a/.github/workflows/activate-accounts.yml b/.github/workflows/activate-accounts.yml new file mode 100644 index 0000000..f122517 --- /dev/null +++ b/.github/workflows/activate-accounts.yml @@ -0,0 +1,21 @@ +name: Activate SC accounts +on: + schedule: + - cron: 0 2,8,14,20 * * * + workflow_dispatch: +jobs: + update_data: + runs-on: ubuntu-latest + env: + NODE_OPTIONS: --max_old_space_size=7168 + steps: + - uses: actions/checkout@v2 + + - name: Install Packages 🔧 + run: npm install + + - name: Update Data 🆕 + run: npm start + env: + REPO_AND_BRANCH: ${{ secrets.REPO_AND_BRANCH }} + MONGODB_URI: ${{ secrets.MONGODB_URI }}