Skip to content

Commit 19a432a

Browse files
Update codeql.yml
Signed-off-by: Miles Price <[email protected]>
1 parent f200d2a commit 19a432a

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

.github/workflows/codeql.yml

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

89-
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch'
90-
name: Check for Changes in main
91-
id: check_main_changed
92-
run: |
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
95-
echo "No changes in main"
96-
echo "deploy_docs_site=false" >> $GITHUB_ENV
97-
else
98-
echo "Changes detected in main"
99-
echo "deploy_docs_site=true" >> $GITHUB_ENV
100-
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch'
101-
name: Export Main Changed Status
102-
run: |
103-
echo "Main changed status: $deploy_docs_site"
104-
env:
105-
deploy_docs_site: ${{ steps.check_main_changed.outputs.deploy_docs_site }}
106-
107-
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
89+
- if: matrix.language == 'c-cpp' && github.event_name == 'push'
10890
name: Clean up Sphinx Build Directory
10991
run: |
11092
find build/docs/sphinx -name '*.doctree' -delete
@@ -113,11 +95,11 @@ jobs:
11395
find build/docs/sphinx -name '*.inv' -delete
11496
find build/docs/sphinx -name '*.gz' -delete
11597
116-
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
98+
- if: matrix.language == 'c-cpp' && github.event_name == 'push'
11799
name: Create .nojekyll file
118100
run: touch build/docs/sphinx/.nojekyll
119-
120-
- if: github.ref == 'refs/heads/dev/milesp/doc-site-from-branch' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
101+
102+
- if: matrix.language == 'c-cpp' && github.event_name == 'push'
121103
name: Deploy to GitHub Pages
122104
uses: JamesIves/github-pages-deploy-action@v4
123105
with:

0 commit comments

Comments
 (0)