Skip to content

Commit

Permalink
fix workflow (#4274)
Browse files Browse the repository at this point in the history
  • Loading branch information
casibbald authored Dec 25, 2024
1 parent 4f90060 commit a5c48e6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
build:
permissions:
statuses: write
#if: ${{ github.event_name != 'push' && github.repository_owner == 'weaveworks' && !github.event.pull_request.head.repo.fork }}
if: "${{ github.event_name != 'push' && github.repository_owner == 'weaveworks' && !github.event.pull_request.head.repo.fork }}"
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -35,12 +35,10 @@ jobs:
- name: Build docs
env:
NODE_OPTIONS: "--max-old-space-size=4096"
GITHUB_HEAD_REF: ${{ github.head_ref }}
GITHUB_HEAD_REF: "${{ github.event_name == 'pull_request' && github.head_ref || 'main' }}"
run: |
yarn install --frozen-lockfile
yarn clear
# export DOC_BASE_URL="/$GITHUB_HEAD_REF/"
# export DOC_URL=https://docs.gitops.weaveworks.org
export STAGING_BUILD=false
yarn build
touch build/.nojekyll
Expand All @@ -59,7 +57,7 @@ jobs:
pull-requests: write
id-token: write
pages: write
# if: ${{ github.event_name != 'push' && github.repository_owner == 'weaveworks' && !github.event.pull_request.head.repo.fork }}
if: "${{ github.event_name != 'push' && github.repository_owner == 'weaveworks' && !github.event.pull_request.head.repo.fork }}"
runs-on: ubuntu-latest
defaults:
run:
Expand Down

0 comments on commit a5c48e6

Please sign in to comment.