Skip to content

fix(governance): πŸ› tolerate historical extra labels #16

fix(governance): πŸ› tolerate historical extra labels

fix(governance): πŸ› tolerate historical extra labels #16

Workflow file for this run

name: on-release-bump
# Internal workflow for Malakof/.github.
# On every semver tag vX.Y.Z, opens a "chore: bump governance to vX.Y.Z" PR
# on every Crystal repo pinning an older version.
on:
push:
tags:
- "v*.*.*"
jobs:
open-bump-prs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout this repo
uses: actions/checkout@v4
- name: Skip if CRYSTAL_GITHUB_PAT secret is missing
id: precheck
env:
PAT_SET: ${{ secrets.CRYSTAL_GITHUB_PAT != '' }}
run: |
if [ "$PAT_SET" != "true" ]; then
echo "::notice::CRYSTAL_GITHUB_PAT not set β€” skipping bump PR generation. Configure the secret to enable cross-repo bump PRs."
echo "skip=true" >> "$GITHUB_OUTPUT"
else
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
- name: Open bump PRs across Crystal repos
if: steps.precheck.outputs.skip != 'true'
env:
GH_TOKEN: ${{ secrets.CRYSTAL_GITHUB_PAT }}
NEW_VERSION: ${{ github.ref_name }}
run: |
python3 scripts/open-bump-prs.py \
--new-version "$NEW_VERSION" \
--repos "Malakof/crystal-capabilities,Malakof/crystal-dark-factory-poc,Malakof/crystal-dark-factory-target-lab,Malakof/crystal-discord-bot,Malakof/crystal-specs,Malakof/crystal-assistant-ui-poc,Malakof/crystal-company,Malakof/crystal-compta,Malakof/crystal-dark-factory-hermes"