Skip to content

Main Workflow Dispatch #66

Main Workflow Dispatch

Main Workflow Dispatch #66

name: Main Workflow Dispatch
on:
workflow_dispatch:
inputs:
breadth:
type: number
default: 2
max-depth:
type: number
default: 1
website-url:
type: string
default: "https://kzmkgze3v46fyc6paipj.lite.vusercontent.net/login"
app-url:
type: string
prerun:
type: string
username:
type: string
password:
type: string
setup:
type: string
jobs:
generate-prerun:
runs-on: ubuntu-latest
outputs:
prerun: ${{ steps.set_prerun.outputs.prerun }}
app-type: ${{ steps.set_app_type.outputs.app_type }}
steps:
- name: Set PRERUN variable
id: set_prerun
run: |
{
echo "prerun<<EOF"
if [ -n "${{ inputs.app-url }}" ]; then
echo "Invoke-WebRequest ${{ inputs.app-url }} -OutFile app.exe"
echo "Start-Process ./app.exe"
elif [ -n "${{ inputs.website-url }}" ]; then
cat << 'SCRIPT'
cd $env:TEMP
npm init -y
npm install dashcam-chrome
Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized","--load-extension=$(pwd)/node_modules/dashcam-chrome/build","${{ inputs.website-url }}"
SCRIPT
fi
echo "${{ inputs.prerun }}"
echo "exit"
echo "EOF"
} >> $GITHUB_OUTPUT
- name: Set app_type variable
id: set_app_type
run: |
if [ -n "${{ inputs.app-url }}" ]; then
echo "app_type=desktop" >> $GITHUB_OUTPUT
elif [ -n "${{ inputs.website-url }}" ]; then
echo "app_type=web" >> $GITHUB_OUTPUT
fi
generate:
uses: ./.github/workflows/generate.yml

Check failure on line 64 in .github/workflows/manual-generate.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/manual-generate.yml

Invalid workflow file

error parsing called workflow ".github/workflows/manual-generate.yml" -> "./.github/workflows/generate.yml" (source branch with sha:a54846a35e18eaa8f727e64c901fa48777d14274) : you may only define up to 10 `inputs` for a `workflow_dispatch` event
needs: [generate-prerun]
with:
dispatchId: manual-${{ github.run_id }}
primaryId: ${{ github.run_id }}
breadth: ${{ fromJson(inputs.breadth) }}
max-depth: ${{ fromJson(inputs.max-depth) }}
login_username: ${{ inputs.username }}
login_password: ${{ inputs.password }}
prerun: ${{ needs.generate-prerun.outputs.prerun }}
app-type: ${{ needs.generate-prerun.outputs.app-type }}
setup: ${{ inputs.setup }}
secrets:
TESTDRIVER_API_KEY: ${{ secrets.TESTDRIVER_API_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}