Skip to content

Commit db41336

Browse files
author
Alvaro Muñoz
committed
Add Reusable Workflow test
1 parent 5006ffe commit db41336

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on: push
2+
3+
jobs:
4+
call-workflow-1-in-local-repo:
5+
uses: octo-org/this-repo/.github/workflows/reusable_workflow.yml@172239021f7ba04fe7327647b213799853a9eb89
6+
with:
7+
config-path: ${{ github.event.pull_request.head.ref }}
8+
secrets: inherit
9+
call-workflow-2-in-local-repo:
10+
uses: ./.github/workflows/reusable_workflow.yml
11+
with:
12+
config-path: ${{ github.event.pull_request.head.ref }}
13+
secrets: inherit
14+
call-workflow-in-another-repo:
15+
uses: octo-org/another-repo/.github/workflows/workflow.yml@v1
16+
with:
17+
config-path: ${{ github.event.pull_request.head.ref }}
18+
secrets: inherit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Reusable workflow example
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
config-path:
7+
required: true
8+
type: string
9+
secrets:
10+
token:
11+
required: true
12+
13+
jobs:
14+
triage:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- id: sink
18+
run: echo ${{ inputs.config-path }}

0 commit comments

Comments
 (0)