Skip to content

Commit 396b445

Browse files
author
Nikolai Emil Damm
committed
refactor(release): remove issue existence check from workflow
Signed-off-by: Nikolai Emil Damm <[email protected]>
1 parent 1383af8 commit 396b445

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,8 @@ jobs:
1313
permissions:
1414
issues: write
1515
contents: read
16-
env:
17-
ISSUE_EXISTS: false
1816
steps:
19-
- name: Check if Issue Already Exists
20-
id: ISSUE_EXISTS
21-
run: |
22-
EXISTS=$(curl -L \
23-
-H "Accept: application/vnd.github+json" \
24-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
25-
-H "X-GitHub-Api-Version: 2022-11-28" \
26-
"https://api.github.com/repos/${{ github.repository }}/issues?state=open" | jq '.[] | select(.title == "Release pending!")')
27-
if [ -z "$EXISTS" ]; then
28-
echo "ISSUE_EXISTS=false" >> $GITHUB_ENV
29-
else
30-
echo "ISSUE_EXISTS=true" >> $GITHUB_ENV
31-
fi
3217
- name: Github Action Notify Release
33-
if: env.ISSUE_EXISTS == false
3418
uses: nearform-actions/[email protected]
19+
with:
20+
notify-after: 1m

0 commit comments

Comments
 (0)