Skip to content

Instantly share code, notes, and snippets.

@joshjohanning
Last active January 31, 2022 19:31
Show Gist options
  • Save joshjohanning/bacf4db530be5d475ccdd7c3ebf726e7 to your computer and use it in GitHub Desktop.
Save joshjohanning/bacf4db530be5d475ccdd7c3ebf726e7 to your computer and use it in GitHub Desktop.
Workflow dispatch inputs and defaults with other on: trigger events
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
build_run_id_to_deploy:
description: 'the build run id to download for deploy'
required: true
default: '1703586018'
env:
build_run_id_to_deploy: '1703586018'
...
- name: download workflow artifact
uses: benday-inc/download-artifact@main
with:
run_id: ${{ github.event.inputs.build_run_id_to_deploy == '' && env.build_run_id_to_deploy || github.event.inputs.build_run_id_to_deploy }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment