Skip to content

Commit

Permalink
fix this bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitoTGT committed Jul 21, 2024
1 parent 828da2e commit e406a3e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/sync-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ jobs:
contents: write # 'write' access to repository contents

steps:
- uses: actions/checkout@v4
- name: Pull the repository and update the config types
run: |
echo $(curl https://raw.githubusercontent.com/spaceness/stardust/main/src/types/config.d.ts) > stardust-config.d.ts
- 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_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
branch: ${{ github.head_ref }}
- name: Checkout
uses: actions/checkout@v4
- name: Update config types
run: |
echo $(curl https://raw.githubusercontent.com/spaceness/stardust/main/src/types/config.d.ts) > stardust-config.d.ts
- 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_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
branch: ${{ github.head_ref }}

0 comments on commit e406a3e

Please sign in to comment.