Start Program #1
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: Start Program | |
on: | |
workflow_dispatch: | |
inputs: | |
input_string: | |
description: "Input string to pass to the program" | |
required: true | |
type: string | |
jobs: | |
run-npm-start: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.10.0" | |
- name: Install dependencies | |
run: npm install | |
- name: Run npm start | |
run: npm start "${{ github.event.inputs.input_string }}" | |
env: | |
INPUT_STRING: ${{ github.event.inputs.input_string }} | |
NON_INTERACTIVE: "true" |