yamled 0.0.14

Format-preserving YAML edits: change what you meant, keep every other byte
Documentation
name: CI

on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]
  merge_group:
  # Refresh the default branch's build cache without repeating every push.
  schedule:
    - cron: "37 8 * * *"
  workflow_dispatch:

# The shared Verify job reads this run and the runs that replaced it.
permissions:
  actions: read
  contents: read
  pull-requests: read

concurrency:
  # Every merge queue entry shares one group.
  # A newer entry's run therefore cancels the runs of the entries ahead of it.
  # The queue merges on the result of the newest entry, whose merge-group
  # commit contains every entry ahead of it.
  #
  # That works only while the queue groups HEADGREEN. Under ALLGREEN, a
  # cancelled entry fails.
  # Outside the queue, a draft run gets a group of its own, so it never cancels
  # the ready run.
  group: >-
    ci-${{ github.workflow }}-${{ github.event_name == 'merge_group' && format('queue-{0}',
    github.event.merge_group.base_ref) || format('{0}-{1}{2}', github.event_name,
    github.event.pull_request.number || github.ref_name, github.event.pull_request.draft && '-draft'
    || '') }}
  cancel-in-progress: true

jobs:
  refresh:
    if: github.event_name == 'schedule'
    # One API call on the runner chosen when this repository was rendered.
    runs-on: ubuntu-26.04
    timeout-minutes: 2
    permissions:
      actions: write
    steps:
      - name: Dispatch CI on the default branch
        env:
          GH_TOKEN: ${{ github.token }}
          REPOSITORY: ${{ github.repository }}
          WORKFLOW: ${{ github.workflow_ref }}
        run: |
          workflow=${WORKFLOW%@*}
          gh workflow run "${workflow##*/}" --repo "$REPOSITORY" --ref main

  verify:
    if: ${{ !github.event.pull_request.draft && github.event_name != 'schedule' }}
    # The shared jobs that install tools download through the release mirror.
    # They exchange the job's OIDC token for a session token, with the
    # organization's mirror key. The caller therefore grants id-token: write.
    permissions:
      actions: read
      contents: read
      id-token: write
      pull-requests: read
    uses: victor-software-house/actions/.github/workflows/rust-ci.yml@e9cf7ef0da4f4a9a7a6f978f5dd54be0d0d539bc # main, 2026-11-26
    with:
      mise-version: 2026.11.12
      advisories: true
      semver: true
      timeout-minutes: 8
      build-runner: '["ubuntu-26.04"]'
      read-only-runner: '["ubuntu-26.04"]'
      light-runner: ubuntu-26.04
      cache-volume: false
    secrets:
      RELEASE_MIRROR_URL: ${{ secrets.RELEASE_MIRROR_URL }}
      RELEASE_MIRROR_CI_KEY: ${{ secrets.RELEASE_MIRROR_CI_KEY }}