From 1bb9530a16f85185dc925975d1ecb970e849d45f Mon Sep 17 00:00:00 2001 From: winston Date: Mon, 6 Feb 2023 03:34:20 +0100 Subject: [PATCH] ci: skip pushing on forks --- .github/workflows/readme.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index 4807067..f404aa6 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -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 }}