-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.43 KB
/
manual_account_update.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: Manual Account Update
on:
pull_request:
branches:
- main
repository_dispatch:
schedule:
- cron: "0 6 * * *" # 15:00 JST
workflow_dispatch:
env:
HEADLESS: ${{ vars.HEADLESS }}
PLAYWRIGHT_LOGGER: ${{ vars.PLAYWRIGHT_LOGGER }}
EMAIL: ${{ secrets.EMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
MANUAL_ACCOUNT_NAME: ${{ secrets.MANUAL_ACCOUNT_NAME }}
SYMBOL: ${{ secrets.SYMBOL }}
NUMBER_OF_SHARES: ${{ secrets.NUMBER_OF_SHARES }}
BVPS: ${{ secrets.BVPS }}
jobs:
update_manual_account:
name: Update manual account
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: ".node-version"
cache: "yarn"
- run: yarn install --check-files --frozen-lockfile --non-interactive
- run: npx playwright install --with-deps chromium
- run: echo "CURRENT_DATE=2024-08-27" >> $GITHUB_ENV
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: user_data
key: ${{ runner.os }}-${{ env.CURRENT_DATE }}
- run: yarn update_manual_account
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: ${{ !cancelled() }}
with:
path: screenshot
if-no-files-found: ignore