Skip to content

Commit

Permalink
ci: create a JIRA issue for dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Nov 14, 2023
1 parent 4183762 commit 6083458
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/check_dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,29 @@ jobs:
cp ci/check_dependencies/issue_header.md issue.md
make check-dependencies >issue_content.md
cat issue_content.md >> issue.md
[ -s issue_content.md ] && EMPTY=false || EMPTY=true
echo "issue-file=issue.md" >> "$GITHUB_OUTPUT"
echo "empty=$empty" >> "$GITHUB_OUTPUT"
echo "empty=$(test -s issue_content.md && echo 'false' || echo 'true')" >> "$GITHUB_OUTPUT"
- uses: JasonEtco/create-an-issue@v2
if: ${{ ! steps.dependency-report.outputs.empty }}
name: Create Github issue
id: create-issue
if: ${{ steps.dependency-report.outputs.empty == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: ${{ steps.dependency-report.outputs.issue-file }}
update_existing: true
search_existing: all
- name: Create Jira issue
id: create-jira-issue
if: ${{ steps.dependency-report.outputs.empty == 'false' }}
uses: tomhjp/[email protected]
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
with:
project: OSC
issuetype: "Task"
summary: "Update Helm Chart dependencies"
description: "See ${{ steps.create-issue.outputs.url }}"
extraFields: '{"labels": ["opensource_gardener"], "priority": {"name": "Highest"}, "assignee": {"id": "${{ secrets.JIRA_USER_ID }}"}}'

0 comments on commit 6083458

Please sign in to comment.