From ff131c39639240ef4b9a3b1f0c190bce955ec4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Bouynot?= Date: Mon, 8 Apr 2024 13:31:05 +0200 Subject: [PATCH] Update netbox.yml --- .github/workflows/netbox.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/netbox.yml b/.github/workflows/netbox.yml index 0a0d6ec..872ca13 100644 --- a/.github/workflows/netbox.yml +++ b/.github/workflows/netbox.yml @@ -1,7 +1,7 @@ name: Open Issue when Netbox releases a new version on: schedule: - - cron: 30 * * * * + - cron: 32 * * * * jobs: create_issue: @@ -26,10 +26,9 @@ jobs: new_release_tag=$(echo $new_release | jq '.tagName') new_release_date=$(echo $new_release | jq '.publishedAt') if [[ "$previous_issue_date" > "$new_release_date" ]]; then - body=$(gh release view $new_release_tag --repo netbox-community/netbox) gh issue create \ --title "[Chore]: Upgrade netbox to $new_release_tag" \ - --body "$body" + --body "$(gh release view $new_release_tag --repo netbox-community/netbox --json body --jq '.body')" fi env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}