From 697d80d5a8b1da551a3a915684699f311b27718b Mon Sep 17 00:00:00 2001 From: Vitalij Dovhanyc <45185420+vdovhanych@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:44:37 +0100 Subject: [PATCH] chore: configure some actions to be skipped for forks (#2005) * chore: configure some actions to be skipped for forks * chore: build docs only when it changes --- .github/workflows/docs-deploy.yml | 3 +++ .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, 7 insertions(+) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index b3933548..3ea343f8 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -11,6 +11,9 @@ on: tags: # Stable release tags - v[0-9]+.[0-9]+.[0-9]+ + paths: + - 'docs/**' + - 'mkdocs.yml' workflow_dispatch: jobs: 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 592929cb..e6e5d511 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