Skip to content

Commit

Permalink
fixing a bug in the parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
TieDyedSheep committed May 23, 2024
1 parent a6b7344 commit 2babc36
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,18 @@ on:
workflow_dispatch:
inputs:
workflowBranch:
required: false
default: 'dev'
type: string
description: 'Select the branch to run the workflow on'
required: true
default: 'main'
type: choice
options:
- dev
- main
jobs:
ci:
uses: shardeum/github-automation/.github/workflows/node-ci-shared.yml@"${{ github.event.inputs.workflowBranch }}"
ci-dev:
if: ${{ github.event.inputs.workflowBranch == 'dev' }}
uses: shardeum/github-automation/.github/workflows/node-ci-shared.yml@dev

ci-main:
if: ${{ github.event.inputs.workflowBranch == 'main' }}
uses: shardeum/github-automation/.github/workflows/node-ci-shared.yml@main

0 comments on commit 2babc36

Please sign in to comment.