Skip to content

Commit

Permalink
fg
Browse files Browse the repository at this point in the history
  • Loading branch information
alankritdabral committed Jan 6, 2024
1 parent 2e08aae commit 8ba71d9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 19 deletions.
40 changes: 24 additions & 16 deletions .github/workflows/job1.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
name: Reusable workflow example
name: Node.js CI

on:
workflow_call:
inputs:
config-path:
required: true
type: string
secrets:
token:
required: true
push:
branches:
- main
pull_request:
branches:
- main

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.token }}
configuration-path: ${{ inputs.config-path }}
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
9 changes: 6 additions & 3 deletions .github/workflows/job2.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Call a reusable workflow

on:
pull_request:
branches:
- main
push:
branches:
- "**"
pull_request:
branches: [main]
types: [opened, reopened, synchronize]

jobs:
call-workflow:
Expand Down

0 comments on commit 8ba71d9

Please sign in to comment.