-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (39 loc) · 2 KB
/
scaleway-start-import-job-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
name: Import job Scaleway
on:
workflow_dispatch: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
jobs:
start-job-image:
strategy:
matrix:
dates: [
{start_date: "2023-04-01", end_date: "2023-05-01"}
,{start_date: "2023-05-01", end_date: "2023-06-01"}
,{start_date: "2023-06-01", end_date: "2023-07-01"}
,{start_date: "2023-07-01", end_date: "2023-08-01"}
,{start_date: "2023-08-01", end_date: "2023-09-01"}
,{start_date: "2023-09-01", end_date: "2023-10-01"}
,{start_date: "2023-10-01", end_date: "2023-11-01"}
,{start_date: "2023-11-01", end_date: "2023-12-01"}
,{start_date: "2023-12-01", end_date: "2024-01-01"}
,{start_date: "2024-01-01", end_date: "2024-02-01"}
,{start_date: "2024-02-01", end_date: "2024-03-01"}
,{start_date: "2024-03-01", end_date: "2024-04-01"}
,{start_date: "2024-04-01", end_date: "2024-05-01"}
,{start_date: "2024-05-01", end_date: "2024-06-01"}
,{start_date: "2024-06-01", end_date: "2024-07-01"}
,{start_date: "2024-07-01", end_date: "2024-08-01"}
,{start_date: "2024-08-01", end_date: "2024-09-01"}
,{start_date: "2024-09-01", end_date: "2024-10-01"}
,{start_date: "2024-10-01", end_date: "2024-11-01"}
]
runs-on: ubuntu-latest
steps:
- name: start import job to reapply logic to all elements start_date matrix
uses: jawher/[email protected]
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
SCW_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }}
SCW_ZONE: ${{ secrets.SCW_ZONE }}
with:
args: jobs definition start ${{ secrets.SCALEWAY_JOB_IMPORT_ID }} environment-variables.UPDATE=true environment-variables.START_DATE_UPDATE=${{ matrix.dates.start_date }} environment-variables.END_DATE=${{ matrix.dates.end_date }}