Skip to content

Commit

Permalink
refactor: remove issue existence check from release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolai Emil Damm <neq@energinet.dk>
  • Loading branch information
devantler committed Jan 15, 2025
1 parent 4d6267d commit 96fcc11
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,8 @@ jobs:
permissions:
issues: write
contents: read
env:
ISSUE_EXISTS: false
steps:
- name: Check if Issue Already Exists
id: ISSUE_EXISTS
run: |
EXISTS=$(curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${{ github.repository }}/issues?state=open" | jq '.[] | select(.title == "Release pending!")')
if [ -z "$EXISTS" ]; then
echo "ISSUE_EXISTS=false" >> $GITHUB_ENV
else
echo "ISSUE_EXISTS=true" >> $GITHUB_ENV
fi
- name: Github Action Notify Release
if: env.ISSUE_EXISTS == false
uses: nearform-actions/github-action-notify-release@v1.12.2
with:
notify-after: 1m


0 comments on commit 96fcc11

Please sign in to comment.