Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,18 @@ jobs:
{"env": "dev"},
{"env": "pkg_meta"}
]
release:
name: 🏷️ Release dry run
uses: $/.github/workflows/prepare-release.yaml
permissions:
contents: read
pull-requests: read
with:
dry-run: true
gate:
name: 🚦 Required checks pass
if: ${{ !cancelled() }} # codespell:ignore cancelled
needs: [test]
needs: [test, release]
runs-on: ubuntu-26.04
steps:
- name: 🚦 Require all needed jobs to pass
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,23 @@ on:
- minor
- patch
default: auto
workflow_call:
inputs:
dry-run:
description: Assemble the release without pushing, for the pull request gate
type: boolean
required: true
permissions: {}
jobs:
prepare:
name: 🏷️ Prepare Towncrier release
if: github.repository == 'pytest-dev/pytest-print'
uses: tox-dev/github-workflows/.github/workflows/prepare-towncrier-release.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
uses: tox-dev/github-workflows/.github/workflows/prepare-towncrier-release.yaml@2a3b863f4563ce9891d2cee1ed381b6f82654836 # 6.6.0
permissions:
contents: read
pull-requests: read
with:
bump: ${{ inputs.bump }}
bump: ${{ inputs.bump || 'auto' }}
dry-run: ${{ inputs.dry-run == true }}
secrets:
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
Loading