-
Notifications
You must be signed in to change notification settings - Fork 24
61 lines (53 loc) · 1.93 KB
/
gardenlinux-bumper.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: Garden Linux VM bumper
on:
schedule:
- cron: '0 6 * * *'
jobs:
run-bumper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Run bumper
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip3 install -r ${{ github.workspace }}/utilities/gardenlinux-bumper/requirements.txt
${{ github.workspace }}/utilities/gardenlinux-bumper/bumper.py \
${{ github.workspace }}/ansible/group_vars/gardenlinux-image.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: '${{ secrets.RHACS_BOT_GITHUB_TOKEN }}'
commit-message: Update Garden Linux VM
committer: ${{ vars.RHACS_BOT_GITHUB_USERNAME }} <${{ vars.RHACS_BOT_GITHUB_EMAIL }}>
author: ${{ vars.RHACS_BOT_GITHUB_USERNAME }} <${{ vars.RHACS_BOT_GITHUB_EMAIL }}>
branch: ${{ vars.RHACS_BOT_GITHUB_USERNAME }}/gardenlinux-bump
signoff: false
delete-branch: true
title: Update Garden Linux VM
body: |
Update Garden Linux VM used for testing to the latest version.
labels: |
all-integration-tests
draft: false
notify:
runs-on: ubuntu-latest
if: always() && contains(join(needs.*.result, ','), 'failure') && github.event_name == 'schedule'
needs:
- run-bumper
steps:
- name: Slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_COLLECTOR_ONCALL_WEBHOOK }}
SLACK_CHANNEL: team-acs-collector-oncall
SLACK_COLOR: failure
SLACK_LINK_NAMES: true
SLACK_TITLE: Garden Linux version bumper failed
MSG_MINIMAL: actions url,commit
SLACK_MESSAGE: |
@acs-collector-oncall