Fix the Quality status context in the release workflow
The real context of the Quality run on a push is "Quality / quality (push)", not the nested job name. Also store the file with LF line endings, as .editorconfig requires.
This commit is contained in:
@@ -1,56 +1,56 @@
|
|||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
# Releases this repository: creates the version tag and the release page from
|
# Releases this repository: creates the version tag and the release page from
|
||||||
# the CHANGELOG.md entry, and only when the commit is the tip of main, its
|
# the CHANGELOG.md entry, and only when the commit is the tip of main, its
|
||||||
# Quality run is green and the changelog has an entry for the version. The
|
# Quality run is green and the changelog has an entry for the version. The
|
||||||
# script is a file of TirSystem/github-action (tools/release.py), fetched at an
|
# script is a file of TirSystem/github-action (tools/release.py), fetched at an
|
||||||
# exact tag. dry_run defaults to true: it checks and prints and writes nothing,
|
# exact tag. dry_run defaults to true: it checks and prints and writes nothing,
|
||||||
# so a release is a deliberate second run with dry_run false.
|
# so a release is a deliberate second run with dry_run false.
|
||||||
#
|
#
|
||||||
# release.py also keeps a moving major tag (v0 for 0.x versions) pointing to
|
# release.py also keeps a moving major tag (v0 for 0.x versions) pointing to
|
||||||
# the highest release of its major version, as in TirSystem/github-action.
|
# the highest release of its major version, as in TirSystem/github-action.
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "Version to release, MAJOR.MINOR.PATCH without a leading v"
|
description: "Version to release, MAJOR.MINOR.PATCH without a leading v"
|
||||||
required: true
|
required: true
|
||||||
dry_run:
|
dry_run:
|
||||||
description: "true checks only; false creates the tag and the release page"
|
description: "true checks only; false creates the tag and the release page"
|
||||||
required: false
|
required: false
|
||||||
default: "true"
|
default: "true"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: release
|
group: release
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Fetch the shared script
|
- name: Fetch the shared script
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
repository: TirSystem/github-action
|
repository: TirSystem/github-action
|
||||||
ref: v1.1.0
|
ref: v1.1.0
|
||||||
path: shared-scripts
|
path: shared-scripts
|
||||||
|
|
||||||
- name: Check and publish the release
|
- name: Check and publish the release
|
||||||
env:
|
env:
|
||||||
GITEA_API_URL: ${{ gitea.api_url }}
|
GITEA_API_URL: ${{ gitea.api_url }}
|
||||||
SOURCE_REPOSITORY: ${{ gitea.repository }}
|
SOURCE_REPOSITORY: ${{ gitea.repository }}
|
||||||
RELEASE_CREDENTIALS: ${{ secrets.TOKEN_FOR_GITEA_RELEASE || github.token }}
|
RELEASE_CREDENTIALS: ${{ secrets.TOKEN_FOR_GITEA_RELEASE || github.token }}
|
||||||
RELEASE_VERSION: ${{ inputs.version }}
|
RELEASE_VERSION: ${{ inputs.version }}
|
||||||
RELEASE_DRY_RUN: ${{ inputs.dry_run }}
|
RELEASE_DRY_RUN: ${{ inputs.dry_run }}
|
||||||
RELEASE_SHA: ${{ gitea.sha }}
|
RELEASE_SHA: ${{ gitea.sha }}
|
||||||
# The status context of the Quality run on the commit. Check the exact
|
# The status context of the Quality run on the commit. Check the exact
|
||||||
# text on a pull request and correct it here if the dry run says the
|
# text on a pull request and correct it here if the dry run says the
|
||||||
# run was not found.
|
# run was not found.
|
||||||
VALIDATION_CONTEXT: "Quality / quality / quality-checks (push)"
|
VALIDATION_CONTEXT: "Quality / quality (push)"
|
||||||
run: python3 shared-scripts/tools/release.py
|
run: python3 shared-scripts/tools/release.py
|
||||||
|
|||||||
Reference in New Issue
Block a user