ci: skip pushing on forks

pull/1/head
winston 2 years ago
parent ab908421ad
commit 1bb9530a16
No known key found for this signature in database
GPG Key ID: 3786770EDBC2B481

@ -12,8 +12,9 @@ env:
DENO_DIR: deno_cache DENO_DIR: deno_cache
jobs: jobs:
test: readme:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Re-generate README sections
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -33,6 +34,8 @@ jobs:
run: ./main.ts run: ./main.ts
- name: Push changes - name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4
# skip pushing on forks
if: ${{ !github.event.pull_request.head.repo.fork }}
with: with:
commit_message: "chore: re-generate README sections" commit_message: "chore: re-generate README sections"
branch: ${{ github.head_ref }} branch: ${{ github.head_ref }}

Loading…
Cancel
Save