mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-23 12:23:12 +00:00
2293e7f178
* Check for remote branch before trying to build a changeset. * Fail exit if push fails. * Add pull-request permission to workflow. Signed-off-by: SuperQ <superq@gmail.com>
40 lines
1 KiB
YAML
40 lines
1 KiB
YAML
---
|
|
name: Check for new upstream releases
|
|
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.discover.outputs.result }}
|
|
container:
|
|
image: quay.io/prometheus/golang-builder:base
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Get repos for each role
|
|
id: discover
|
|
run: ./.github/scripts/discover_role_repos.sh >> "$GITHUB_OUTPUT"
|
|
|
|
bump_role:
|
|
runs-on: ubuntu-latest
|
|
needs: discover-role-repos
|
|
permissions:
|
|
contents: write
|
|
pull-request: 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
|
|
- run: ./.github/scripts/version_updater.sh ${{ matrix.repo }} ${{ matrix.role }}
|