Skip to content

Instantly share code, notes, and snippets.

@dholbach
Created December 3, 2021 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dholbach/e1f0838a5944d638b2fee223e6390f00 to your computer and use it in GitHub Desktop.
Save dholbach/e1f0838a5944d638b2fee223e6390f00 to your computer and use it in GitHub Desktop.
name: Update MAINTAINERS
description: A GitHub Action for updating MAINTAINERS files
author: Daniel Holbach
branding:
color: blue
icon: command
inputs:
repository:
description: "repository name"
required: true
runs:
using: composite
steps:
- name: "Download and copy the binary to /usr/local/bin"
shell: bash
run: |
- 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 ${{ inputs.repository }} -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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment