-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (42 loc) · 1.47 KB
/
update_demo_data.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
name: Update Demo Data
on:
schedule:
# ?????????????? minute (0 - 59)
# ? ?????????????? hour (0 - 23)
# ? ? ?????????????? day of the month (1 - 31)
# ? ? ? ?????????????? month (1 - 12 or JAN-DEC)
# ? ? ? ? ?????????????? day of the week (0 - 6 or SUN-SAT)
# ? ? ? ? ?
# ? ? ? ? ?
# ? ? ? ? ?
# * * * * *
# At 00:00 UTC on Sundays
- cron: "0 0 * * 0"
# Workflow dispatch trigger allows manually running workflow
workflow_dispatch: {}
jobs:
update-demo-data:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: task/update-cco-demo-data
- name: Set up local Git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Configure Ruby Environment
run: bundle install --without documentation --path bundle
- name: Run the update script
run: |
mkdir -p flexera/data/aws
mkdir -p flexera/data/azure
mkdir -p flexera/data/google
ruby update_demo_data.rb
- uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: 'flexera/data/aws/*.json flexera/data/azure/*.json flexera/data/google/*.json'