Skip to content

Daily Infoseek

Daily Infoseek #8116

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 }}" }'