ci: ensure actions are fork-friendly (#176)
This commit is contained in:
parent
0d1e4deb9b
commit
a32a19b6a3
5
.github/workflows/generate.yml
vendored
5
.github/workflows/generate.yml
vendored
@ -13,11 +13,14 @@ jobs:
|
|||||||
generate-health-files:
|
generate-health-files:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Generate Health Files
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.USERSTYLES_TOKEN }}
|
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Set up Deno
|
- name: Set up Deno
|
||||||
|
2
.github/workflows/maintainers.yml
vendored
2
.github/workflows/maintainers.yml
vendored
@ -17,7 +17,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.USERSTYLES_TOKEN }}
|
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Set up Deno
|
- name: Set up Deno
|
||||||
@ -32,6 +31,7 @@ jobs:
|
|||||||
path: ${{ env.DENO_DIR }}
|
path: ${{ env.DENO_DIR }}
|
||||||
|
|
||||||
- name: Sync Maintainers
|
- name: Sync Maintainers
|
||||||
|
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
|
||||||
working-directory: src/generate
|
working-directory: src/generate
|
||||||
run: ./syncMaintainers.ts
|
run: ./syncMaintainers.ts
|
||||||
env:
|
env:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user