Skip to content

Commit f200d2a

Browse files
Update fixing temp ref branch
Signed-off-by: Miles Price <[email protected]>
1 parent babd317 commit f200d2a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,25 @@ jobs:
8686
with:
8787
category: "/language:${{matrix.language}}"
8888

89-
- if: github.ref == 'refs/heads/main'
89+
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch'
9090
name: Check for Changes in main
9191
id: check_main_changed
9292
run: |
93-
git fetch origin main
94-
if [[ $(git rev-list -n 1 HEAD) == $(git rev-list -n 1 origin/main) ]]; then
93+
git fetch origin dev/milesp/doc-site-from-branch
94+
if [[ $(git rev-list -n 1 HEAD) == $(git rev-list -n 1 origin/dev/milesp/doc-site-from-branch) ]]; then
9595
echo "No changes in main"
9696
echo "deploy_docs_site=false" >> $GITHUB_ENV
9797
else
9898
echo "Changes detected in main"
9999
echo "deploy_docs_site=true" >> $GITHUB_ENV
100-
- if: github.ref == 'refs/heads/main'
100+
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch'
101101
name: Export Main Changed Status
102102
run: |
103103
echo "Main changed status: $deploy_docs_site"
104104
env:
105105
deploy_docs_site: ${{ steps.check_main_changed.outputs.deploy_docs_site }}
106106

107-
- if: github.ref == 'refs/heads/main' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
107+
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
108108
name: Clean up Sphinx Build Directory
109109
run: |
110110
find build/docs/sphinx -name '*.doctree' -delete
@@ -113,11 +113,11 @@ jobs:
113113
find build/docs/sphinx -name '*.inv' -delete
114114
find build/docs/sphinx -name '*.gz' -delete
115115
116-
- if: github.ref == 'refs/heads/main' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
116+
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
117117
name: Create .nojekyll file
118118
run: touch build/docs/sphinx/.nojekyll
119119

120-
- if: github.ref == 'refs/heads/main' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
120+
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
121121
name: Deploy to GitHub Pages
122122
uses: JamesIves/github-pages-deploy-action@v4
123123
with:

0 commit comments

Comments
 (0)