Skip to content

Commit

Permalink
ci(maintainers): allow action on forks
Browse files Browse the repository at this point in the history
This commit ensures that forks can clone
repositories in GH actions and only syncs
maintainers when it's the main branch
and ran under catppuccin/userstyles.
  • Loading branch information
sgoudham committed Aug 20, 2023
1 parent ccb450f commit e40dd60
Showing 1 changed file with 1 addition and 1 deletion.
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 e40dd60

Please sign in to comment.