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:
|
2023-05-01 11:07:31 +00:00
|
|
|
role-repos: ${{ steps.discover.outputs.result }}
|
2023-03-14 15:55:40 +00:00
|
|
|
container:
|
|
|
|
image: quay.io/prometheus/golang-builder:base
|
2023-03-11 15:35:19 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Get repos for each role
|
2023-05-01 11:07:31 +00:00
|
|
|
id: discover
|
|
|
|
run: ./.github/scripts/discover_role_repos.sh >> "$GITHUB_OUTPUT"
|
2023-03-11 15:35:19 +00:00
|
|
|
|
2023-05-16 09:11:40 +00:00
|
|
|
bump_role:
|
2023-03-11 15:35:19 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: discover-role-repos
|
|
|
|
permissions:
|
|
|
|
contents: write
|
2023-05-20 05:13:13 +00:00
|
|
|
pull-requests: write
|
2023-03-11 15:35:19 +00:00
|
|
|
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
|
2023-05-03 19:22:20 +00:00
|
|
|
- run: ./.github/scripts/version_updater.sh ${{ matrix.repo }} ${{ matrix.role }}
|