-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (49 loc) · 1.59 KB
/
ftClientSecret.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Ft Api Secret Update
on:
schedule:
- cron: '30 19 * * *'
workflow_dispatch:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
Update-Ft-Api-Secret:
name: Update Ft Api Secret
runs-on: ubuntu-22.04
env:
CRAWLER_GITHUB_AUTH: ${{ secrets.CRAWLER_GITHUB_AUTH }}
READ_PRIVATE_SUBMODULE_TOKEN: ${{ secrets.READ_PRIVATE_SUBMODULE_TOKEN }}
FT_USERNAME: ${{ secrets.FT_USERNAME }}
FT_PASSWORD: ${{ secrets.FT_PASSWORD }}
WORKING_DIRECTORY: ${{ vars.WORKING_DIRECTORY }}
# todo: node 20 으로 업데이트 후 node 설치 부분 지워도 됨.
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
submodules: true
token: ${{ env.READ_PRIVATE_SUBMODULE_TOKEN }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME }}
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: ${{ vars.AWS_REGION }}
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Build
run: |
pnpm i
pnpm build
working-directory: ${{ env.WORKING_DIRECTORY }}
- name: Run update
run: |
pnpm start:updateFtClientSecret
working-directory: ${{ env.WORKING_DIRECTORY }}