name: test if conditions
name: test if conditions
on:
push:
branches: [master, test]
env:
TEST_BRANCH: "test"
EMPTY_VALUE: ""
jobs:
test-conditions:
runs-on: ubuntu-latest
steps:
- name: simple evaluation on test
run: echo "runs"
#eg) for test branch => runs-on: ubuntu-latest
for master branch => runs-on: ['self-hosted', 'products', 'latest']
是否可以在同一工作流程中动态加载运行?
${{ (inputs.shouldUseSelfHosted) && fromJSON('[ "self-hosted", "Linux", "X64" ]') || 'ubuntu-latest' }}
参考:https://github.com/actions/runner/issues/409 https://github.com/actions/runner/issues/409
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)