forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 1.28 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
name: Update CONTRIBUTORS file
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
jobs:
main:
# this workflow will always fail in forks; bail if this isn't running in the upstream
if: github.repository == 'aws/aws-cdk'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: minicli/[email protected]
name: "Update a projects CONTRIBUTORS file"
env:
CONTRIB_REPOSITORY: 'aws/aws-cdk'
CONTRIB_OUTPUT_FILE: 'CONTRIBUTORS.md'
CONTRIB_IGNORE: 'github-actions[bot],mergify[bot],dependabot[bot],dependabot-preview[bot],aws-cdk-automation'
- name: Create a PR
uses: peter-evans/create-pull-request@v7
with:
# Git commit details
branch: automation/update-contributors
author: aws-cdk-automation <[email protected]>
commit-message: 'chore: update Contributors File'
# Pull Request details
title: 'chore: update Contributors File'
labels: auto-approve
# Github prevents further Github actions to be run if the default Github token is used.
# Instead use a privileged token here, so further GH actions can be triggered on this PR.
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}