Trigger external Build (beta) #6
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
# Github action to trigger external Debian12 image build (Tag: beta) | |
name: Trigger external Build (beta) | |
on: | |
release: | |
types: [prereleased] | |
workflow_dispatch: | |
inputs: | |
chose_node_version: | |
type: choice | |
description: 'Which Node version should be used?' | |
options: | |
- 'Recommended Node version (default)' | |
- 'Experimental Node version' | |
- 'Both Node versions' | |
jobs: | |
trigger_beta_build_on_release: | |
if: github.event_name == 'release' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger beta build on release | |
uses: benc-uk/workflow-dispatch@v1.2 | |
with: | |
ref: 'main' | |
workflow: 'iob.docker - Build Debian 12 Image (beta)' | |
repo: 'buanet/private.actionsrunner' | |
inputs: '{ "chose_node_version": "Both Node versions" }' | |
token: ${{ secrets.ACTIONS_PAT }} | |
trigger_beta_build_manual: | |
if: github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger beta build on release | |
uses: benc-uk/workflow-dispatch@v1.2 | |
with: | |
ref: 'main' | |
workflow: 'iob.docker - Build Debian 12 Image (beta)' | |
repo: 'buanet/private.actionsrunner' | |
inputs: '{ "chose_node_version": "${{ inputs.chose_node_version }}" }' | |
token: ${{ secrets.ACTIONS_PAT }} |