Skip to content

Commit 3a3b199

Browse files
Fixed syntax for this workflow too
1 parent 8d1160b commit 3a3b199

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/recurrent-incident-reporting.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@ jobs:
1010
compute-week:
1111
uses: ./.github/workflows/is-this-sprint-week.yaml
1212

13-
check-if-issue-already-exits:
14-
uses: benlei/find-issue-by-title@v1
15-
with:
16-
title: ${{ env.issue_title }}
17-
state: open
18-
labels: recurrent
13+
check-if-issue-already-exists:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
id: ${{ steps.find-issue.outputs.id }}
17+
steps:
18+
- uses: benlei/find-issue-by-title@v1
19+
id: find-issue
20+
with:
21+
title: ${{ env.issue_title }}
22+
state: open
23+
labels: recurrent
1924

2025
create-issue:
21-
if: ${{ needs.compute-week.outputs.valid_week == 'True' && (needs.check-if-issue-already-exits.outputs.id == '' || needs.check-if-issue-already-exists.outputs.id == null) }}
22-
needs: compute-week
26+
if: ${{ needs.compute-week.outputs.valid_week == 'True' && needs.check-if-issue-already-exists.outputs.id == '' }}
27+
needs:
28+
- compute-week
29+
- check-if-issue-already-exists
2330
runs-on: ubuntu-latest
2431
permissions:
2532
issues: write

0 commit comments

Comments
 (0)