forked from NateBJones-Projects/OB1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-readme-contributions.yml
More file actions
38 lines (32 loc) · 997 Bytes
/
Copy pathupdate-readme-contributions.yml
File metadata and controls
38 lines (32 loc) · 997 Bytes
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
name: Update README Contributions
on:
workflow_dispatch:
schedule:
- cron: "17 9 * * *"
permissions:
contents: write
pull-requests: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: main
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Update README recent contributions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node scripts/update-readme-contributions.mjs
- name: Open README update PR
uses: peter-evans/create-pull-request@v6
with:
commit-message: "[docs] Refresh README recent contributions"
title: "[docs] Refresh README recent contributions"
body: "Automated refresh of the generated Recent Contributions section in README.md."
branch: automation/readme-recent-contributions
delete-branch: true