Skip to content

ci: adopt mat-vis workflow patterns (dry-run inputs + documented headers) #54

Open

Description

@gerchowl

Context

mat-vis (`MorePET/mat-vis`) has two workflow patterns worth borrowing for our future manual release / promotion workflows:

  1. `workflow_dispatch` with a `dry-run` boolean input. Their `promote-data-release.yml` accepts a `dry-run` flag that runs validation steps without performing the action. Cheap safety rail.
  2. Documented workflow headers. Their workflow files start with a clear comment block (Flow / Trigger / Inputs sections) instead of just the name. Makes the file's purpose obvious without reading the YAML.

Reference: see `promote-data-release.yml`, `bake.yml`, `pypi.yml` in MorePET/mat-vis.

When this applies here

  • When `CRATES_IO_PUBLISH_ENABLED` flips on (ci: enable rs-materials crates.io publishing #43): the first crates.io publish workflow run benefits from a dry-run option to validate the token + crate metadata without actually publishing.
  • Future catalog/thumbnail asset releases (if we ever ship those as GH Release assets, parallel to the wheel).
  • Future manual recovery workflows (re-tag, re-publish, etc.).

Proposed pattern

For new manual workflows:

```yaml
on:
workflow_dispatch:
inputs:
dry-run:
description: 'Validate without acting'
required: false
default: false
type: boolean
```

And the header style:

```yaml

<Workflow purpose — one sentence>

Flow:

1. ...

2. ...

Trigger:

Inputs:

```

Not adopting

  • mat-vis's manual version-tagging / no-release-please model. Our release-please setup gives us automatic version bumps + CHANGELOG generation; reverting would trade one annoyance (occasional false bumps from cross-cutting commits) for several (forgotten bumps, inconsistent CHANGELOGs).
  • Calver for code. Doesn't fit a code library.

Refs

Related: #43 (crates.io enablement), #50 (the false-bump that prompted this look-around)

Activity

  1. added
    enhancement
    on Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions