-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (29 loc) · 1.02 KB
/
sync-type.yaml
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
name: Update config types
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
permissions: # Job-level permissions configuration starts here
contents: write # 'write' access to repository contents
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update config types
run: |
rm -f stardust-config.d.ts;
curl https://raw.githubusercontent.com/spaceness/stardust/main/src/types/config.d.ts -o stardust-config.d.ts;
git add .;
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.repository == 'spaceness/stardust-docs' && github.ref == 'refs/heads/main' }}
with:
commit_message: "chore: sync config type"
commit_options: "--allow-empty"
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
branch: ${{ github.head_ref }}