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

add action to auto-generate contributors #1665

Merged
merged 3 commits into from
Oct 14, 2021
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
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