-
Notifications
You must be signed in to change notification settings - Fork 2.4k
43 lines (35 loc) · 1.29 KB
/
contributor_map.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
name: Contributor Map
on:
workflow_dispatch:
schedule:
# At 3:00 AM UTC the first day of every month.
- cron: "0 3 1 * *"
jobs:
update-contributor-map:
name: Update Contributor Map
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create Branch
id: create-branch
shell: pwsh
run: |
$date = Get-Date -Format "yyyy-MM-dd"
$branchName = "contributor-map/$date-update"
git checkout -b $branchName
git push origin $branchName
"date=$date" >> $Env:GITHUB_OUTPUT
"branch-name=$branchName" >> $Env:GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Contributor Map
uses: tunaitis/contributor-map@da8a84b848781bccaa56bc73519c055f4814e512 #v1
with:
output: src/docs/community/contributors/images/contributors-map.svg
- name: Create Pull Request
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 #v6.0.0
with:
branch: ${{ steps.create-branch.outputs.branch-name }}
base: ${{ github.event.repository.default_branch}}
title: Contributor Map Update for ${{ steps.create-branch.outputs.date }}