-
Notifications
You must be signed in to change notification settings - Fork 36
42 lines (34 loc) · 1.35 KB
/
contributor-details.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: _Contributor Details
on:
workflow_dispatch:
jobs:
update-contributor-details:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Make script executable
run: chmod +x .github/workflows/scripts/fetch_contributor_details.sh
- name: Fetch contributor details
run: .github/workflows/scripts/fetch_contributor_details.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 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 contributor details
title: 'chore: Update contributor details'
body: |
This PR updates the contributor details in contributors.json.
This is an automated PR created by the Contributor Details workflow.
branch: update/contributor-details
base: trunk
delete-branch: true