-
Notifications
You must be signed in to change notification settings - Fork 167
45 lines (43 loc) · 1.47 KB
/
cron-pins-failed.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Cron Check Failed Pins
on:
schedule:
- cron: '8 8 * * 1'
workflow_dispatch:
inputs:
after:
description: 'Consider pins created after this ISO formatted date:'
required: false
default: ''
jobs:
update:
name: Check Failed Pins
runs-on: ubuntu-latest
strategy:
matrix:
env: ['production']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout latest cron release tag
run: |
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
git checkout $LATEST_TAG
- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: bahmutov/npm-install@v1
- name: Run job
env:
DEBUG: '*'
ENV: ${{ matrix.env }}
STAGING_DATABASE_CONNECTION: ${{ secrets.STAGING_DATABASE_CONNECTION }}
PROD_DATABASE_CONNECTION: ${{ secrets.PROD_DATABASE_CONNECTION }}
CLUSTER1_API_URL: ${{ secrets.CLUSTER1_API_URL }}
CLUSTER1_BASIC_AUTH_TOKEN: ${{ secrets.CLUSTER1_BASIC_AUTH_TOKEN }}
CLUSTER2_API_URL: ${{ secrets.CLUSTER2_API_URL }}
CLUSTER2_BASIC_AUTH_TOKEN: ${{ secrets.CLUSTER2_BASIC_AUTH_TOKEN }}
CLUSTER3_API_URL: ${{ secrets.CLUSTER3_API_URL }}
CLUSTER3_BASIC_AUTH_TOKEN: ${{ secrets.CLUSTER3_BASIC_AUTH_TOKEN }}
AFTER: ${{ github.event.inputs.after }}
run: yarn --cwd packages/cron start:pins-failed