feat: add header for workflow call

This commit is contained in:
arashagp
2025-01-02 10:34:54 +03:30
parent fa5c4d3e8c
commit 9fcacd8067
5 changed files with 33 additions and 5 deletions

View File

@@ -6,9 +6,9 @@ on:
workflow_call:
inputs:
node-version:
description: 'Node.js version'
description: "Node.js version"
required: true
default: 'lts/*'
default: "lts/*"
type: string
permissions:
@@ -46,7 +46,7 @@ jobs:
- name: 📥 Install Dependencies
run: yarn install --immutable
- name: 🏗️ Build
- name: 🏗️ Build TypeScript
run: yarn build
env:
WIREIT_LOGGER: metrics

View File

@@ -6,13 +6,20 @@ on:
workflow_dispatch:
schedule:
- cron: '0 7 * */2 *'
- cron: "0 7 * */2 *"
# │ │ │ │ │
# │ │ │ │ └─── day of the week (0 - 6 or SUN-SAT)
# │ │ │ └────── month (1 - 12 or JAN-DEC)
# │ │ └───────── day of the month (1 - 31)
# │ └─────────── hour (0 - 23)
# └───────────── minute (0 - 59)
workflow_call:
inputs:
node-version:
description: "Node.js version"
required: true
default: "lts/*"
type: string
jobs:
analyze-code-ql:
@@ -27,7 +34,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['TypeScript']
language: ["TypeScript"]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps:

View File

@@ -6,6 +6,13 @@ on:
workflow_dispatch:
pull_request:
workflow_call:
inputs:
node-version:
description: "Node.js version"
required: true
default: "lts/*"
type: string
jobs:
dependency-review:

View File

@@ -8,6 +8,13 @@ on:
release:
types:
- created
workflow_call:
inputs:
node-version:
description: "Node.js version"
required: true
default: "lts/*"
type: string
env:
NODE_VERSION: lts/*

View File

@@ -4,6 +4,13 @@ name: Build & Lint & Test & Release
on:
workflow_dispatch:
workflow_call:
inputs:
node-version:
description: "Node.js version"
required: true
default: "lts/*"
type: string
env:
NODE_VERSION: lts/*