Skip to content

Commit a2282ec

Browse files
committed
move the if condition at top
1 parent b71f5d1 commit a2282ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build_site.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
path: _site
5656

5757
deploy:
58+
if: >
59+
github.ref == 'refs/heads/main'
60+
&& github.repository == 'UCL/rsd-engineeringcourse'
5861
needs: build
5962
permissions:
6063
pages: write
@@ -65,8 +68,5 @@ jobs:
6568
runs-on: ubuntu-latest
6669
steps:
6770
- name: Deploy to GitHub Pages
68-
if: >
69-
github.ref == 'refs/heads/main'
70-
&& github.repository == 'UCL/rsd-engineeringcourse'
7171
id: deployment
7272
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)