Add test for self-referencing jobs

This commit is contained in:
Alvaro Muñoz
2024-03-14 11:58:44 +01:00
parent 8e2c1a4f4e
commit 03277cc24b

View File

@@ -0,0 +1,20 @@
name: Test
on:
issue_comment:
types: [created]
jobs:
test1:
runs-on: ubuntu-22.04
outputs:
job_output: ${{ steps.source.outputs.value }}
steps:
- id: source
uses: mad9000/actions-find-and-replace-string@3
with:
source: ${{ github.event['head_commit']['message'] }}
find: 'foo'
replace: ''
- run: ${{ steps.source.outputs.value }}
- run: ${{ needs.test1.outputs.job_output }}