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

Loading…
Cancel
Save