-
Notifications
You must be signed in to change notification settings - Fork 36
42 lines (34 loc) · 1.4 KB
/
github-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
name: _Update GitHub Contributors
on:
workflow_dispatch:
jobs:
github-contributors:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Make script executable
run: chmod +x .github/workflows/scripts/fetch_contributors.sh
- name: Update contributors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
run: ./.github/workflows/scripts/fetch_contributors.sh
# Remove temp file before creating PR
- name: Clean up temp file
run: rm -f .temp.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update GitHub contributors
title: 'chore: Update GitHub contributors'
body: |
This PR updates the GitHub contributors in examples.json.
This is an automated PR created by the GitHub Contributors workflow.
branch: update/github-contributors
base: trunk
delete-branch: true