2023-03-11 15:35:19 +00:00
|
|
|
---
|
2023-03-12 15:48:29 +00:00
|
|
|
name: Check for new upstream releases
|
2023-03-11 15:35:19 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '21 14 * * *'
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
role-repos:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
jobs:
|
|
|
|
discover-role-repos:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
role-repos: ${{ steps.discovered-role-repos.outputs.result }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Get repos for each role
|
|
|
|
id: discovered-role-repos
|
|
|
|
uses: mikefarah/yq@master
|
|
|
|
with:
|
2023-03-12 15:48:29 +00:00
|
|
|
cmd: ./.github/scripts/discover_role_repos.sh
|
2023-03-11 15:35:19 +00:00
|
|
|
|
2023-03-12 15:48:29 +00:00
|
|
|
check_for_new_versions:
|
2023-03-11 15:35:19 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: discover-role-repos
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
container:
|
|
|
|
image: quay.io/prometheus/golang-builder:base
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include: ${{ fromJson(needs.discover-role-repos.outputs.role-repos) }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2023-03-12 15:48:29 +00:00
|
|
|
- run: ./.github/scripts/version_bumper.sh ${{ matrix.repo }} ${{ matrix.role }}
|