-
Notifications
You must be signed in to change notification settings - Fork 26
43 lines (38 loc) · 1.37 KB
/
update-manager-images.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
---
name: Update manager images
"on":
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
update-manager-images:
if: github.repository == 'osism/testbed'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Create PR
uses: technote-space/create-pr-action@v2
with:
EXECUTE_COMMANDS: |
pip3 install jinja2
pip3 install requests
pip3 install pyyaml
curl -o images.yml https://raw.githubusercontent.com/osism/cfg-generics/main/environments/manager/images.yml
curl -o render-images.py https://raw.githubusercontent.com/osism/cfg-generics/main/src/render-images.py
python3 render-images.py
rm -f render-images.py
mv images.yml environments/manager/images.yml
COMMIT_EMAIL: '[email protected]'
COMMIT_MESSAGE: |
chore: update versions in environments/manager/images.yml
Signed-off-by: OSISM Bot <[email protected]>
COMMIT_NAME: 'OSISM Bot'
ONLY_DEFAULT_BRANCH: true
PR_BRANCH_NAME: 'update-manager-images'
PR_BRANCH_PREFIX: 'chore/'
PR_TITLE: 'chore: update versions in environments/manager/images.yml'