forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add action to auto-generate contributors (flyteorg#1665)
* 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
1 parent
b325cb0
commit 905a347
Showing
4 changed files
with
49 additions
and
32 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,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 |
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,5 @@ | ||
### Contributors | ||
|
||
<!-- CONTRIBUTORS START --> | ||
|
||
<!-- CONTRIBUTORS END --> |
Oops, something went wrong.