Skip to content

Commit

Permalink
Add manual workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronBeneteau committed Dec 2, 2024
1 parent 2c06fc5 commit 6dcd9a4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/manual-test-self-hosted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Manual Test Self-Hosted Runner

on:
workflow_dispatch:
inputs:
project:
description: 'Project to build (i.e. Demo/Blink)'
required: true
type: string
platform:
description: 'Platform to build for (i.e. cli, stm32f767)'
required: true
type: string
commit:
description: 'Commit to build (i.e. main, HEAD^)'
required: true
type: string

jobs:
download-artifact:
runs-on: self-hosted

steps:
- name: Prepare artifact name
id: prepare-artifact-name
run: |
project_name="${{ inputs.project }}"
project_name="${project_name//\//-}"
github_sha="${{ github.sha }}"
github_sha="${github_sha:0:7}"
artifact_name="build-${project_name}-${{ inputs.platform }}-${{ inputs.commit }}"
echo "artifact_name=${artifact_name}" >> $GITHUB_OUTPUT
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{ steps.prepare-artifact-name.outputs.artifact_name }}

0 comments on commit 6dcd9a4

Please sign in to comment.