Skip to content

Commit 724fee8

Browse files
authored
Update if_test.yml
1 parent 7ad123b commit 724fee8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/if_test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ name: If‑and‑Needs Example
22

33
# Trigger on both pushes and PRs
44
on:
5-
push:
6-
pull_request:
5+
workflow_dispatch
76

87
jobs:
98
build:
109
# ─────────── Server‑side job IF ───────────
1110
# Only queue 'build' when on 'main' branch
1211
if: github.ref == 'refs/heads/main'
13-
runs-on: ubuntu-latest
12+
runs-on: self-hosted
1413

1514
steps:
1615
- name: Checkout code
@@ -41,7 +40,7 @@ jobs:
4140
needs: build
4241
# Server‑side IF: only deploy when 'build' succeeded
4342
if: needs.build.result == 'success'
44-
runs-on: ubuntu-latest
43+
runs-on: self-hosted
4544

4645
steps:
4746
- name: Checkout code

0 commit comments

Comments
 (0)