Skip to content

Commit

Permalink
Updates with latest plugin-template GHA actions config
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
dkliban committed Jul 2, 2021
1 parent b59f145 commit 76d92ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 76d92ec

Please sign in to comment.