From caa1adb142971787c300965be0ad933d3acc86e1 Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Fri, 3 Dec 2021 11:18:04 +0100 Subject: [PATCH] update MAINTAINERS file automatically Signed-off-by: Daniel Holbach --- .../workflows/update-maintainers-files.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/update-maintainers-files.yaml diff --git a/.github/workflows/update-maintainers-files.yaml b/.github/workflows/update-maintainers-files.yaml new file mode 100644 index 00000000..4e832950 --- /dev/null +++ b/.github/workflows/update-maintainers-files.yaml @@ -0,0 +1,35 @@ +name: update MAINTAINERS file cronjob + +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: "00 20 1 * *" + +jobs: + updateMaintainers: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2.3.1 + with: + python-version: 3.8 + - name: Checkout community repo + uses: actions/checkout@v2 + with: + repository: fluxcd/community + path: temp + - uses: BSFishy/pip-action@v1 + with: + requirements: temp/project/requirements.txt + - run: | + ./temp/project/generate-maintainers-file.py flux2 -o MAINTAINERS + rm -rf ./temp + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + title: Update maintainers file + signoff: true