diff --git a/CHANGES/433.feature b/CHANGES/433.feature new file mode 100644 index 00000000..d81de3cd --- /dev/null +++ b/CHANGES/433.feature @@ -0,0 +1 @@ +Added an optional 'before_script' parameter to the release workflow. diff --git a/templates/github/.github/workflows/release.yml.j2 b/templates/github/.github/workflows/release.yml.j2 index d42caf8a..2f2e5eca 100644 --- a/templates/github/.github/workflows/release.yml.j2 +++ b/templates/github/.github/workflows/release.yml.j2 @@ -7,6 +7,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 @@ -141,6 +146,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