Skip to content

Commit

Permalink
Change master to main for stardis
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Dec 5, 2024
1 parent c8421ca commit 408c877
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ name: build-docs
on:
push:
branches:
- master
- main

pull_request_target:
branches:
- master
- main

types:
- opened
Expand All @@ -22,7 +22,6 @@ on:

workflow_dispatch: # manual trigger


env:
CACHE_NUMBER: 0 # increase to reset cache manually
DEPLOY_BRANCH: gh-pages # deployed docs branch
Expand Down Expand Up @@ -64,8 +63,8 @@ jobs:

- name: Check for changes in documentation
run: |
if git diff origin/master..."$(git rev-parse --abbrev-ref HEAD)" --name-only | cat | grep '^docs/' | grep -q .; then
num_files=$(git diff --name-only origin/master...HEAD | grep '^docs/' | wc -l)
if git diff origin/main..."$(git rev-parse --abbrev-ref HEAD)" --name-only | cat | grep '^docs/' | grep -q .; then
num_files=$(git diff --name-only origin/main...HEAD | grep '^docs/' | wc -l)
echo "Changes found in documentation files: $num_files"
exit 0
else
Expand Down

0 comments on commit 408c877

Please sign in to comment.