-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
20 additions
and
16 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 |
---|---|---|
@@ -1,22 +1,26 @@ | ||
name: Manual Trigger Workflow | ||
|
||
# configure manual trigger | ||
name: Manual Trigger Workflow with loglevel & tags | ||
#get log & tags information | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: 'Log level' | ||
required: true | ||
default: 'information' | ||
type: choice | ||
options: | ||
- information | ||
- debug | ||
- warning | ||
- critical | ||
tags: | ||
description: 'Purpose of Run This Workflow?' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
lint-app: | ||
name: Lint App | ||
print-tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
- name: Use NodeJS v16.14.2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.14.2 | ||
- name: Install Dependencies and lint | ||
run: | | ||
cd app | ||
npm install | ||
npm run lint | ||
- name: Print the purpose of run | ||
run: echo ${{ inputs.tags }} purpose |