Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/reusable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
on:
workflow_call
jobs:
hello_world_1:
uses: ./.github/workflows/reusable_1.yml
hello_world_2:
uses: ./.github/workflows/reusable_2.yml
9 changes: 9 additions & 0 deletions .github/workflows/reusable_1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
on:
workflow_call

jobs:
hello_world_1:
runs-on: ubuntu-latest
steps:
- name: Hello world 1
run: echo "Hello, world 1!"
9 changes: 9 additions & 0 deletions .github/workflows/reusable_2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
on:
workflow_call

jobs:
hello_world_2:
runs-on: ubuntu-latest
steps:
- name: Hello world 2
run: echo "Hello, world 1!"
8 changes: 8 additions & 0 deletions .github/workflows/test contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
hello_world:
uses: ./.github/workflows/reusable.yml
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
17 changes: 17 additions & 0 deletions .github/workflows/test_forks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
pull_request_target:
types: [opened, reopened, synchronize]

jobs:
env_hold:
name: "Approve CI for Forks"
environment: ci-forks
runs-on: self-hosted-docker-tiny
if: github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Wait for environment approval for runs from forks
run: exit 0

hello_world:
uses: ./.github/workflows/reusable.yml
needs: env_hold