Release a WDL workflow #399
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release a WDL workflow | |
on: | |
workflow_dispatch: | |
inputs: | |
workflow_name: | |
description: Name of workflow to release | |
release_type: | |
description: major, minor, or patch | |
default: patch | |
release_notes: | |
description: A text message summarizing the changes in this release | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
GH_DEPLOY_TOKEN: ${{secrets.GH_DEPLOY_TOKEN}} | |
DEBIAN_FRONTEND: noninteractive | |
GH_CLI_VERSION: 0.11.1 | |
LC_ALL: C.UTF-8 | |
LANG: C.UTF-8 | |
jobs: | |
create_release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install release script dependencies | |
run: | | |
source /etc/profile | |
sudo apt-get -qq update | |
sudo apt-get -qq install -o=Dpkg::Use-Pty=0 --yes jq moreutils gettext httpie git curl | |
curl -OLs https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.deb | |
sudo dpkg -i gh_${GH_CLI_VERSION}_linux_amd64.deb | |
- name: Release workflow and trigger deployment | |
run: scripts/release.sh ${{github.event.inputs.workflow_name}} ${{github.event.inputs.release_type}} "${{github.event.inputs.release_notes}}" |