Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: check for dependencies on a schedule #3383

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/check_dependencies.yaml
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
8 changes: 8 additions & 0 deletions ci/check_dependencies/issue_header.md
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