Skip to content

feat: Introduce cargo-gamma #695

feat: Introduce cargo-gamma

feat: Introduce cargo-gamma #695

Workflow file for this run

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# GENERATED BY cargo-anvil. DO NOT EDIT DIRECTLY.
# Update cargo-anvil and regenerate; repository-specific edits stop automatic updates.
# Update behaviour: https://github.com/microsoft/ox-tools/blob/main/crates/cargo-anvil/docs/design/updates.md
name: Anvil
# Workflow and caller display names contribute to GitHub's check hierarchy.
# Treat changes as compatibility changes for repository rulesets.
on:
pull_request: {}
merge_group: {}
permissions:
contents: read
concurrency:
group: anvil-pr-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
validation:
name: PR Job
if: github.event_name == 'pull_request'
uses: ./.github/workflows/anvil-pr-impl.yml
# A called workflow cannot elevate beyond its caller. Grant only the
# capabilities required by same-repository pull-request presentation.
permissions:
contents: read
# Publish supplemental failure commit statuses so the PR checks rollup identifies the
# concrete failed Just recipe before the aggregate workflow job.
statuses: write
# Write needed so the pr-fast job can upsert/clear the sticky PR
# comment carrying the cargo-semver-checks advisory (and any
# future advisory checks that emit target/anvil/comments/*).
pull-requests: write
with:
base_ref: ${{ github.event.pull_request.base.sha }}
publish_commit_statuses: true
secrets: inherit
merge-validation:
# Keep the called-job check contexts identical to pull-request runs so one
# branch-protection configuration works for PRs and the merge queue.
name: PR Job
if: github.event_name == 'merge_group'
uses: ./.github/workflows/anvil-pr-impl.yml
# Synthetic merge-group code needs validation but no presentation writes.
permissions:
contents: read
with:
base_ref: ${{ github.event.merge_group.base_sha }}
secrets: inherit