File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11
11
schedule :
12
12
- cron : ' 0 6 * * 0'
13
13
jobs :
14
- test :
14
+ repo :
15
+ name : Test Repo Runner
15
16
runs-on : ubuntu-18.04
16
17
strategy :
17
18
fail-fast : true
26
27
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
27
28
with :
28
29
molecule_command : test
30
+ org :
31
+ name : Test Org Runner
32
+ runs-on : ubuntu-18.04
33
+ strategy :
34
+ fail-fast : true
35
+ steps :
36
+ - name : checkout
37
+ uses : actions/checkout@v2
38
+ with :
39
+ path : " ${{ github.repository }}"
29
40
- name : Molecule for Ansible - GHR Organization
30
41
uses :
MonolithProjects/[email protected]
31
42
env :
Original file line number Diff line number Diff line change 12
12
- robertdebock.epel
13
13
- ansible-github_actions_runner
14
14
15
- - name : Reinstall
15
+ - name : Idempotence test
16
16
user : ansible
17
17
hosts : all
18
18
become : yes
19
19
vars :
20
20
- runner_user : ansible
21
21
- github_repo : ansible-github_actions_runner-testrepo
22
22
- github_account : monolithprojects
23
- - reinstall_runner : yes
24
23
- runner_version : " latest"
25
24
roles :
26
25
- robertdebock.epel
Original file line number Diff line number Diff line change 8
8
- github_account : monolithprojects-testorg
9
9
- runner_org : yes
10
10
- runner_state : " stopped"
11
- - runner_version : " 2.274.1 "
11
+ - runner_version : " 2.274.2 "
12
12
roles :
13
13
- robertdebock.epel
14
14
- ansible-github_actions_runner
Original file line number Diff line number Diff line change 109
109
become : yes
110
110
become_user : " {{ runner_user }}"
111
111
no_log : " {{ hide_sensitive_logs | bool }}"
112
- when : runner_name in registered_runners.json.runners|map(attribute='name')|list and not runner_org
112
+ when : runner_name in registered_runners.json.runners|map(attribute='name')|list and reinstall_runner and not runner_org
113
113
tags :
114
114
- install
115
115
121
121
become : yes
122
122
become_user : " {{ runner_user }}"
123
123
no_log : " {{ hide_sensitive_logs | bool }}"
124
- when : runner_name in registered_runners.json.runners|map(attribute='name')|list and runner_org
124
+ when : runner_name in registered_runners.json.runners|map(attribute='name')|list and reinstall_runner and runner_org
125
125
tags :
126
126
- install
127
127
You can’t perform that action at this time.
0 commit comments