Skip to content

Commit

Permalink
add action to auto-generate contributors (flyteorg#1665)
Browse files Browse the repository at this point in the history
* add action to auto-generate contributors

Signed-off-by: Niels Bantilan <[email protected]>

* [auto-update-contributors] update all-contributors (flyteorg#1666)

Signed-off-by: Flyte Bot <[email protected]>

Co-authored-by: cosmicBboy <[email protected]>

* run action on a weekly schedule

Signed-off-by: Niels Bantilan <[email protected]>

Co-authored-by: Flyte Bot <[email protected]>
Co-authored-by: cosmicBboy <[email protected]>
  • Loading branch information
3 people authored Oct 14, 2021
1 parent b325cb0 commit 905a347
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 32 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/contributors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Contributors

on:
schedule:
- cron: '0 12 * * 1' # At 12 noon on Monday.

jobs:
contributors:
runs-on: ubuntu-latest
if: ${{ !startsWith( github.event.head_commit.message , '[auto-update-contributors]' ) }}
steps:
- uses: actions/checkout@v2
- name: GitHub Contributors Action
uses: hyperledger-tooling/github-contributors-action@main
env:
GITHUB_AUTH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
SOURCE_GITHUB_REPOSITORY: flyteorg
CONTRIBUTORS_SECTION_PATTERN: <!-- CONTRIBUTORS START -->
CONTRIBUTORS_SECTION_END_PATTERN: <!-- CONTRIBUTORS END -->
INPUT_TEMPLATE_FILE: ./assets/contributor-template.md
FILE_WITH_PATTERN: ./README.md
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.FLYTE_BOT_PAT }}
commit-message: '[auto-update-contributors] update all-contributors'
committer: Flyte Bot <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true
branch: auto-update-contributors
base: contributors-action
delete-branch: true
title: 'auto-update contributors'
labels: auto-update-contributors
team-reviewers: |
owners
maintainers
draft: false
5 changes: 5 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Contributors

<!-- CONTRIBUTORS START -->

<!-- CONTRIBUTORS END -->
Loading

0 comments on commit 905a347

Please sign in to comment.