-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65a6bba
commit b20ea50
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Node CI Workflow | ||
# The parameters are defaulted at the org level but can be overridden on the repository. | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
pull_request: | ||
branches: | ||
- dev | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
workflowBranch: | ||
description: 'Branch of the reusable workflow. Defaults to main, select dev for testing only.' | ||
required: true | ||
default: 'main' | ||
type: choice | ||
options: | ||
- dev | ||
- main | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
ci-dev: | ||
if: ${{ github.event.inputs.workflowBranch == 'dev' }} | ||
uses: shardeum/github-automation/.github/workflows/node-ci-shared.yml@dev | ||
secrets: inherit | ||
|
||
ci-main: | ||
if: ${{ github.event.inputs.workflowBranch == 'main' || !github.event.inputs.workflowBranch }} | ||
uses: shardeum/github-automation/.github/workflows/node-ci-shared.yml@main | ||
secrets: inherit |