-
Notifications
You must be signed in to change notification settings - Fork 176
50 lines (50 loc) · 1.99 KB
/
update_fact_periodic.yaml
File metadata and controls
50 lines (50 loc) · 1.99 KB
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
name: Update fact version
on:
workflow_dispatch:
schedule:
- cron: 0 5 * * 1
jobs:
update-fact:
if: ${{ github.repository_owner == 'stackrox' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
with:
ref: master # this is our target branch
fetch-depth: 0 # we need to fetch all branches
- name: Checkout fact repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
with:
repository: stackrox/fact
path: deps/fact
fetch-depth: 0 # we need to fetch tags
- name: Update version
run: make -sC deps/fact tag | tee FACT_VERSION
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # ratchet:peter-evans/create-pull-request@v8
with:
token: '${{ secrets.RHACS_BOT_GITHUB_TOKEN }}'
commit-message: Update FACT_VERSION
committer: '${{ secrets.RHACS_BOT_GITHUB_USERNAME }} <${{ secrets.RHACS_BOT_GITHUB_EMAIL }}>'
author: '${{ secrets.RHACS_BOT_GITHUB_USERNAME }} <${{ secrets.RHACS_BOT_GITHUB_EMAIL }}>'
branch: update_fact_version
signoff: false
delete-branch: true
title: 'chore(fact): Update FACT_VERSION'
body: |
Daily update of FACT_VERSION to latest master version
labels: |
ci-all-qa-tests
dependencies
konflux-build
team-reviewers: |
collector-team
draft: false
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # ratchet:peter-evans/enable-pull-request-automerge@v3
with:
token: '${{ secrets.RHACS_BOT_GITHUB_TOKEN }}'
pull-request-number: '${{ steps.cpr.outputs.pull-request-number }}'
merge-method: squash