-
Notifications
You must be signed in to change notification settings - Fork 17
71 lines (68 loc) · 3.14 KB
/
update-contributors.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Update Contributors
on:
schedule:
- cron: '0 3,9,15,21 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: "actions/checkout@v2"
with:
submodules: recursive
- name: Get hyperledger-updates contributors information
uses: "hyperledger-tooling/github-contributors-action@main"
env:
GITHUB_AUTH_TOKEN: "${{ secrets.PAT }}"
SOURCE_GITHUB_REPOSITORY: hyperledger-tooling/hyperledger-updates
CONTRIBUTORS_SECTION_PATTERN: "## Backend Contributors"
CONTRIBUTORS_SECTION_END_PATTERN: "## GitHub Action Contributors"
INPUT_TEMPLATE_FILE: ./templates/contributor-template.md
FILE_WITH_PATTERN: ./index.md
- name: Get action contributors information
uses: "hyperledger-tooling/github-contributors-action@main"
env:
GITHUB_AUTH_TOKEN: "${{ secrets.PAT }}"
SOURCE_GITHUB_REPOSITORY: hyperledger-tooling/github-contributors-action
CONTRIBUTORS_SECTION_PATTERN: "## GitHub Action Contributors"
CONTRIBUTORS_SECTION_END_PATTERN: ""
INPUT_TEMPLATE_FILE: ./templates/contributor-template.md
FILE_WITH_PATTERN: ./index.md
- name: Get Hyperledger contributors information
uses: "hyperledger-tooling/github-contributors-action@main"
env:
GITHUB_AUTH_TOKEN: "${{ secrets.PAT }}"
SOURCE_GITHUB_REPOSITORY: hyperledger
CONTRIBUTORS_SECTION_PATTERN: "## Hyperledger GitHub Contributors"
CONTRIBUTORS_SECTION_END_PATTERN: "## Hyperledger Labs GitHub Contributors"
INPUT_TEMPLATE_FILE: ./templates/contributor-template.md
FILE_WITH_PATTERN: ./community.md
- name: Get Hyperledger Labs contributors information
uses: "hyperledger-tooling/github-contributors-action@main"
env:
GITHUB_AUTH_TOKEN: "${{ secrets.PAT }}"
SOURCE_GITHUB_REPOSITORY: hyperledger-labs
CONTRIBUTORS_SECTION_PATTERN: "## Hyperledger Labs GitHub Contributors"
CONTRIBUTORS_SECTION_END_PATTERN: "## Hyperledger Tooling GitHub Contributors"
INPUT_TEMPLATE_FILE: ./templates/contributor-template.md
FILE_WITH_PATTERN: ./community.md
- name: Get Hyperledger Tooling contributors information
uses: "hyperledger-tooling/github-contributors-action@main"
env:
GITHUB_AUTH_TOKEN: "${{ secrets.PAT }}"
SOURCE_GITHUB_REPOSITORY: hyperledger-tooling
CONTRIBUTORS_SECTION_PATTERN: "## Hyperledger Tooling GitHub Contributors"
CONTRIBUTORS_SECTION_END_PATTERN: "## Github Community Statistics"
INPUT_TEMPLATE_FILE: ./templates/contributor-template.md
FILE_WITH_PATTERN: ./community.md
- name: Create Pull Request with new backend contributors
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT }}
branch-suffix: timestamp
title: Update Backend Contributors
labels: automerge
signoff: true
delete-branch: false
commit-message: Update Backend Contributors