Skip to content

Commit

Permalink
ci: ensure actions are fork-friendly (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored Aug 20, 2023
1 parent 0d1e4de commit a32a19b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ jobs:
generate-health-files:
runs-on: ubuntu-latest
name: Generate Health Files
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.USERSTYLES_TOKEN }}
ref: ${{ github.ref }}

- name: Set up Deno
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maintainers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.USERSTYLES_TOKEN }}
ref: ${{ github.ref }}

- name: Set up Deno
Expand All @@ -32,6 +31,7 @@ jobs:
path: ${{ env.DENO_DIR }}

- name: Sync Maintainers
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
working-directory: src/generate
run: ./syncMaintainers.ts
env:
Expand Down

0 comments on commit a32a19b

Please sign in to comment.