Skip to content

Commit

Permalink
Update netbox.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fbouynot authored Apr 8, 2024
1 parent f0189c7 commit ff131c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/netbox.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Open Issue when Netbox releases a new version
on:
schedule:
- cron: 30 * * * *
- cron: 32 * * * *

jobs:
create_issue:
Expand All @@ -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 }}
Expand Down

0 comments on commit ff131c3

Please sign in to comment.