Skip to content

Commit 557f602

Browse files
authored
Update main.yml
1 parent 18f3875 commit 557f602

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,30 @@ jobs:
2727
# Build job
2828
github-pages:
2929
if: github.event.workflow_run.conclusion == 'success'
30-
runs-on: ${{github.actor != github.repository_owner && 'ubuntu-latest' || (
31-
github.ref_name != 'main' && 'windows-latest' || 'self-hosted') }}
30+
runs-on: ${{github.ref_name != 'eQ19' && 'ubuntu-latest' || (
31+
github.ref_protected && 'windows-latest' || 'self-hosted') }}
3232
steps:
33-
- name: 📂 Checkout
33+
- name: 💎Checkout
3434
uses: actions/checkout@v4
3535
with:
3636
token: ${{ secrets.JEKYLL_GITHUB_TOKEN }}
3737

38-
- name: 💎 Build on Linux
38+
- name: 📂Build on Linux
3939
if: runner.os == 'Linux'
4040
uses: eq19/feed@v3
4141
with:
4242
pre_build_commands: 'make build'
4343
token: ${{ secrets.JEKYLL_GITHUB_TOKEN }}
4444
owner: ${{ secrets.JEKYLL_GITHUB_OWNER }}
4545

46-
- name: 💎 Build on Windows
46+
- name: 📂Build on Windows
4747
if: runner.os == 'Windows'
4848
uses: eq19/maps@v1
4949
with:
5050
dotnet-version: '3.1.x'
5151
owner: ${{ secrets.JEKYLL_GITHUB_OWNER }}
52+
53+
- name: 📂Build on Self-Hosted
54+
if: ${{ (runner.os != 'Linux') && (runner.os != 'Windows') }}
55+
uses: actions/checkout@v2
56+

0 commit comments

Comments
 (0)