Skip to content

Commit 03277cc

Browse files
author
Alvaro Muñoz
committed
Add test for self-referencing jobs
1 parent 8e2c1a4 commit 03277cc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
test1:
9+
runs-on: ubuntu-22.04
10+
outputs:
11+
job_output: ${{ steps.source.outputs.value }}
12+
steps:
13+
- id: source
14+
uses: mad9000/actions-find-and-replace-string@3
15+
with:
16+
source: ${{ github.event['head_commit']['message'] }}
17+
find: 'foo'
18+
replace: ''
19+
- run: ${{ steps.source.outputs.value }}
20+
- run: ${{ needs.test1.outputs.job_output }}

0 commit comments

Comments
 (0)