-
Notifications
You must be signed in to change notification settings - Fork 152
44 lines (37 loc) · 1.16 KB
/
cron-update-statuses.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
44
name: Update component statuses
on:
schedule:
- cron: "0 9 * * *"
jobs:
cron-update-statuses:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node
uses: ./.github/actions/node
- name: Today date
run: echo "TODAY=$(date '+%Y-%m-%d')" >> $GITHUB_ENV
- name: Setup git identity
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Update component statuses
run: |
yarn check:statuses
git add --all
git diff-index --quiet HEAD || git commit -m "chore: update component statuses"
- name: Create PR
uses: peter-evans/create-pull-request@v5
with:
base: master
branch: chore/update-icons-and-svgs
token: ${{ secrets.PAT }}
delete-branch: true
title: "chore: update component statuses"
body: |
- Automatically generated PR on ${{ env.TODAY }}.
- Updates component statuses
assignees: mainframev
reviewers: mainframev
draft: false