Merge pull request #26 from Molecule-AI/auto/p133-readme-v1-pin

docs: pin reusable-workflow examples from @main to @v1 (P133)
This commit is contained in:
Hongming Wang 2026-04-30 01:04:32 -07:00 committed by GitHub
commit fd60655089
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ name: Auto-promote staging → main (PR-based, reusable)
# pull-requests: write # pull-requests: write
# jobs: # jobs:
# promote: # promote:
# uses: Molecule-AI/molecule-ci/.github/workflows/auto-promote-staging-pr.yml@main # uses: Molecule-AI/molecule-ci/.github/workflows/auto-promote-staging-pr.yml@v1
# with: # with:
# gates: "ci.yml,e2e-staging-canvas.yml,e2e-api.yml,codeql.yml" # gates: "ci.yml,e2e-staging-canvas.yml,e2e-api.yml,codeql.yml"
# force: ${{ github.event.inputs.force == 'true' }} # force: ${{ github.event.inputs.force == 'true' }}

View File

@ -12,7 +12,7 @@ name: CI
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
validate: validate:
uses: Molecule-AI/molecule-ci/.github/workflows/validate-plugin.yml@main uses: Molecule-AI/molecule-ci/.github/workflows/validate-plugin.yml@v1
``` ```
### Workspace template repos (`molecule-ai-workspace-template-*`) ### Workspace template repos (`molecule-ai-workspace-template-*`)
@ -23,7 +23,7 @@ name: CI
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
validate: validate:
uses: Molecule-AI/molecule-ci/.github/workflows/validate-workspace-template.yml@main uses: Molecule-AI/molecule-ci/.github/workflows/validate-workspace-template.yml@v1
``` ```
### Org template repos (`molecule-ai-org-template-*`) ### Org template repos (`molecule-ai-org-template-*`)
@ -34,7 +34,7 @@ name: CI
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
validate: validate:
uses: Molecule-AI/molecule-ci/.github/workflows/validate-org-template.yml@main uses: Molecule-AI/molecule-ci/.github/workflows/validate-org-template.yml@v1
``` ```
### Any repo with auto-merge enabled ### Any repo with auto-merge enabled
@ -51,7 +51,7 @@ permissions:
pull-requests: write pull-requests: write
jobs: jobs:
disable-auto-merge-on-push: disable-auto-merge-on-push:
uses: Molecule-AI/molecule-ci/.github/workflows/disable-auto-merge-on-push.yml@main uses: Molecule-AI/molecule-ci/.github/workflows/disable-auto-merge-on-push.yml@v1
``` ```
When the team lands more PR-time guards in this repo, add them as additional jobs in the same caller — keeps each consuming repo's footprint to one file. When the team lands more PR-time guards in this repo, add them as additional jobs in the same caller — keeps each consuming repo's footprint to one file.

View File

@ -54,7 +54,7 @@ name: CI
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
validate: validate:
uses: Molecule-AI/molecule-ci/.github/workflows/validate-workspace-template.yml@main uses: Molecule-AI/molecule-ci/.github/workflows/validate-workspace-template.yml@v1
``` ```
The reusable workflow checks out `molecule-ci` itself (into `.molecule-ci-canonical`) and runs the canonical `validate-workspace-template.py` from there — so no per-repo vendoring of the script is needed. The legacy `.molecule-ci/scripts/` directory in each template repo is being phased out. The reusable workflow checks out `molecule-ci` itself (into `.molecule-ci-canonical`) and runs the canonical `validate-workspace-template.py` from there — so no per-repo vendoring of the script is needed. The legacy `.molecule-ci/scripts/` directory in each template repo is being phased out.