From 0058a90ae91a983b79639b505377d75cb0220c79 Mon Sep 17 00:00:00 2001 From: vdovhanych Date: Thu, 11 Jul 2024 10:14:54 +0200 Subject: [PATCH] chore: configure some actions to be skipped for forks --- .github/workflows/docs.yml | 2 ++ .github/workflows/gh-actions-updater.yaml | 1 + .github/workflows/release.yml | 1 + .github/workflows/stale.yml | 1 + .github/workflows/update-flake.yml | 1 + 5 files changed, 6 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c5cddef7..48dc66e2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -13,6 +13,7 @@ permissions: jobs: build: + if: github.repository == 'juanfont/headscale' runs-on: ubuntu-latest steps: - name: Checkout repository @@ -36,6 +37,7 @@ jobs: path: ./site deploy: + if: github.repository == 'juanfont/headscale' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/.github/workflows/gh-actions-updater.yaml b/.github/workflows/gh-actions-updater.yaml index 48d0fabd..f46fb67c 100644 --- a/.github/workflows/gh-actions-updater.yaml +++ b/.github/workflows/gh-actions-updater.yaml @@ -7,6 +7,7 @@ on: jobs: build: + if: github.repository == 'juanfont/headscale' runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3554677f..d2488ff7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ on: jobs: goreleaser: + if: github.repository == 'juanfont/headscale' runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index f7c4ae75..481535a8 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,6 +6,7 @@ on: jobs: close-issues: + if: github.repository == 'juanfont/headscale' runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/update-flake.yml b/.github/workflows/update-flake.yml index c04bb9cc..35067784 100644 --- a/.github/workflows/update-flake.yml +++ b/.github/workflows/update-flake.yml @@ -6,6 +6,7 @@ on: jobs: lockfile: + if: github.repository == 'juanfont/headscale' runs-on: ubuntu-latest steps: - name: Checkout repository