From e40dd606d3d6f7ffc7ba010f9028257775627cdf Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 20 Aug 2023 11:53:48 +0100 Subject: [PATCH] ci(maintainers): allow action on forks 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. --- .github/workflows/maintainers.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maintainers.yml b/.github/workflows/maintainers.yml index c616b921ea..ea5dee7bd5 100644 --- a/.github/workflows/maintainers.yml +++ b/.github/workflows/maintainers.yml @@ -17,7 +17,6 @@ jobs: steps: - uses: actions/checkout@v3 with: - token: ${{ secrets.USERSTYLES_TOKEN }} ref: ${{ github.ref }} - name: Set up Deno @@ -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: