Skip to content

Commit 365f2a3

Browse files
update
1 parent ac341cc commit 365f2a3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Experiment with Matrix OS Equality
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
check_os_equality:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os:
11+
- [self-hosted, ubuntu-20.04, main] # Test case 1: Self-hosted array
12+
- ubuntu-latest # Test case 2: GitHub-hosted string
13+
steps:
14+
- name: Print matrix.os value
15+
run: echo "matrix.os is: ${{ matrix.os }}"
16+
17+
- name: Check equality with 'self-hosted'
18+
run: |
19+
echo "Is matrix.os == 'self-hosted'? ${{ matrix.os == 'self-hosted' }}"

0 commit comments

Comments
 (0)