-
Notifications
You must be signed in to change notification settings - Fork 45
41 lines (39 loc) · 1.52 KB
/
generate_status_page_data.yaml
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
name: Generate status page data
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
generate-status-page-data:
if: github.repository_owner == 'apache'
concurrency:
group: generate-status-page-data
cancel-in-progress: true
runs-on: ubuntu-latest
name: Generate status page data
steps:
- uses: actions/checkout@v3
with:
path: ./kogito-pipelines
- name: Retrieve active repositories
id: retrieve_active_repos
uses: mikefarah/yq@master
with:
cmd: yq '[.repositories[].name] | map("${{ github.repository_owner }}/" + .) | join(",")' ./kogito-pipelines/.ci/jenkins/config/branch.yaml
- name: Retrieve active branches
id: retrieve_active_branches
uses: mikefarah/yq@master
with:
cmd: yq '[.git.branches[].name] | join(",")' ./kogito-pipelines/.ci/jenkins/config/main.yaml
- name: Generate status page data
uses: kiegroup/chain-status/.ci/actions/generate-data@main
with:
projects: "${{ steps.retrieve_active_repos.outputs.result }}"
title: Kogito Status
subtitle: Apache Kogito organization repositories CI status
base-branch-filter: "${{ steps.retrieve_active_branches.outputs.result }}"
branches: 1.13.x,1.13.x-blue
created-by: GitHub Action
created-url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
logger-level: debug
github-token: "${{ secrets.GITHUB_TOKEN }}"