We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac341cc commit 538adffCopy full SHA for 538adff
.github/workflows/experiment_with_workflow.yml
@@ -0,0 +1,27 @@
1
+name: Experiment with Matrix OS Equality
2
+on:
3
+ schedule:
4
+ - cron: '30 5/6 * * *'
5
+ push:
6
+ branches: ['master', 'release-*']
7
+ tags: 'v*'
8
+ pull_request:
9
10
11
+ workflow_dispatch:
12
+
13
+jobs:
14
+ check_os_equality:
15
+ runs-on: ${{ matrix.os }}
16
+ strategy:
17
+ matrix:
18
+ os:
19
+ - [self-hosted, ubuntu-20.04, main] # Test case 1: Self-hosted array
20
+ - ubuntu-latest # Test case 2: GitHub-hosted string
21
+ steps:
22
+ - name: Print matrix.os value
23
+ run: echo "matrix.os is: ${{ matrix.os }}"
24
25
+ - name: Check equality with 'self-hosted'
26
+ run: |
27
+ echo "Is matrix.os == 'self-hosted'? ${{ matrix.os == 'self-hosted' }}"
0 commit comments