Skip to content

Commit

Permalink
CI: Run publish-page workflow only on non-forks and docs changes
Browse files Browse the repository at this point in the history
Resolves #1054
  • Loading branch information
zerok committed Jul 3, 2024
1 parent 0c5c8b3 commit 28df9d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ on:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/publish-page.yml"
pull_request:
types:
- opened
- reopened
- synchronize
- closed
paths:
- "docs/**"
- ".github/workflows/publish-page.yml"

permissions:
contents: write
Expand All @@ -20,6 +26,9 @@ concurrency: ci-${{ github.ref }}

jobs:
publish:
# Do not run this on forks:
if: github.repository == 'grafana/tanka'

runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down

0 comments on commit 28df9d7

Please sign in to comment.