From 76d92ecc18e0579a164241d883c0c48fc305865a Mon Sep 17 00:00:00 2001 From: Dennis Kliban Date: Thu, 1 Jul 2021 16:05:49 -0400 Subject: [PATCH] Updates with latest plugin-template GHA actions config The change pins towncrier to 19.9.0 and also adds an optional parameter to the release workflow. The optional 'before_script' parameter allows custom bash code to be run before script.sh is run. This is useful for resolving docs issues after a release. [noissue] --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbeda8882d..cec4dfe789 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,11 @@ on: release: description: "Release tag (e.g. 3.2.1)" required: true + before_script: + description: | + Bash code to run before script.sh is executed. This should only be used when re-running + a workflow to correct some aspect of the docs. e.g.: git checkout origin/3.14 CHANGES.rst + required: false env: RELEASE_WORKFLOW: true @@ -37,7 +42,7 @@ jobs: - name: Install python dependencies run: | echo ::group::PYDEPS - pip install bandersnatch bump2version gitpython python-redmine towncrier wheel + pip install bandersnatch bump2version gitpython python-redmine towncrier==19.9.0 wheel echo ::endgroup:: - name: Configure Git with pulpbot name and email @@ -139,6 +144,10 @@ jobs: if: ${{ env.TEST == 'bindings' || env.TEST == 'generate-bindings' }} run: .github/workflows/scripts/install_ruby_client.sh + - name: Additional before_script + run: ${{ github.event.inputs.before_script }} + shell: bash + - name: Script if: ${{ env.TEST != 'generate-bindings' }} run: .github/workflows/scripts/script.sh