-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: check for dependencies on a schedule
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Check dependencies | ||
|
||
on: | ||
schedule: | ||
- cron: "0 9 * * 1" | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
jobs: | ||
check-dependencies: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -r ci/check_dependencies/requirements.txt | ||
- name: Generate dependency report | ||
id: dependency-report | ||
run: | | ||
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" | ||
- uses: JasonEtco/create-an-issue@v2 | ||
if: ${{ ! steps.dependency-report.outputs.empty }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
filename: ${{ steps.dependency-report.outputs.issue-file }} | ||
update_existing: true | ||
search_existing: all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Update Chart dependencies | ||
labels: dependencies | ||
--- | ||
|
||
This issue was automatically generated by the `check_dependencies` tool located in [ci/check_dependencies][ci_check_dependencies]. | ||
|
||
[ci_check_dependencies]: https://github.com/SumoLogic/sumologic-kubernetes-collection/tree/main/ci/check_dependencies |