Skip to content

Commit 034b4cf

Browse files
committed
reusable
1 parent 61cb041 commit 034b4cf

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
on:
2-
pull_request_target:
3-
types: [opened, reopened, synchronize]
2+
workflow_call:
3+
inputs:
4+
env:
5+
type: string
6+
required: true
47

58
jobs:
69
hello_world:
710
runs-on: ubuntu-latest
8-
environment: ci
11+
environment: ${{ inputs.env }}
912
steps:
1013
- name: Hello world
1114
run: echo "Hello, world!"

.github/workflows/test prs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
on:
2+
pull_request_target:
3+
types: [opened, reopened, synchronize]
4+
5+
jobs:
6+
hello_world:
7+
uses: ./.github/workflows/reusable.yml
8+
with:
9+
env: ci-contributors

.github/workflows/test_forks.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
on:
2+
pull_request_target:
3+
types: [opened, reopened, synchronize]
4+
5+
jobs:
6+
hello_world:
7+
uses: ./.github/workflows/reusable.yml
8+
with:
9+
env: ci-forks

0 commit comments

Comments
 (0)