-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (55 loc) · 1.82 KB
/
Copy pathdaily_infoseek.yml
File metadata and controls
60 lines (55 loc) · 1.82 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Daily Infoseek
on:
schedule:
- cron: "0 1,3,5,7,9,11,13,15,17,19,21,23 * * *"
workflow_dispatch:
jobs:
infoseek:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
ref: "developer"
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "yarn"
- name: Install firefox and geckodriver
run: |
brew install --cask firefox
brew install geckodriver
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn test --spec ./test/specs/infoseek.point.e2e.ts
env:
RAKUTEN_USERNAME: ${{ secrets.RAKUTEN_USERNAME }}
RAKUTEN_PASSWORD: ${{ secrets.RAKUTEN_PASSWORD }}
BANK_RAKUTEN_USERNAME: ${{ secrets.BANK_RAKUTEN_USERNAME }}
BANK_RAKUTEN_PASSWORD: ${{ secrets.BANK_RAKUTEN_PASSWORD }}
- name: upload-artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: upload-screenshots-infoseek
path: screenshots
- name: remove-screenshots
if: ${{ failure() }}
run: rm -rf ./screenshots
##################################
### Run when a schedule failed ###
##################################
restart_when_failed:
name: Restarts the scheduled run when it failed
runs-on: macos-latest
if: github.event_name == 'schedule' && failure()
needs: [infoseek]
steps:
- name: Retry the workflow
run: |
curl -i \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.ACTIONS_PAT }}" \
https://api.github.com/repos/FinbertMDS/receive_rakuten_point/actions/workflows/43004264/dispatches \
-d '{"ref": "${{ github.ref }}" }'