We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ad123b commit 724fee8Copy full SHA for 724fee8
.github/workflows/if_test.yml
@@ -2,15 +2,14 @@ name: If‑and‑Needs Example
2
3
# Trigger on both pushes and PRs
4
on:
5
- push:
6
- pull_request:
+ workflow_dispatch
7
8
jobs:
9
build:
10
# ─────────── Server‑side job IF ───────────
11
# Only queue 'build' when on 'main' branch
12
if: github.ref == 'refs/heads/main'
13
- runs-on: ubuntu-latest
+ runs-on: self-hosted
14
15
steps:
16
- name: Checkout code
@@ -41,7 +40,7 @@ jobs:
41
40
needs: build
42
# Server‑side IF: only deploy when 'build' succeeded
43
if: needs.build.result == 'success'
44
45
46
47
0 commit comments