Skip to content

Commit ed11d23

Browse files
Add assert task
1 parent da3d5c1 commit ed11d23

File tree

4 files changed

+17
-22
lines changed

4 files changed

+17
-22
lines changed

tasks/assert.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- name: Check variables
3+
assert:
4+
that:
5+
- github_account is defined
6+
- access_token is defined
7+
- access_token | length > 0
8+
quiet: true
9+
run_once: yes
10+
tags:
11+
- install
12+
- uninstall

tasks/collect_info_org.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
---
2-
- name: Check variables
3-
assert:
4-
that:
5-
- github_account is defined
6-
- access_token is defined and access_token | length>0
7-
quiet: true
8-
run_once: yes
9-
tags:
10-
- install
11-
- uninstall
12-
132
- name: Get registration token (RUN ONCE)
143
uri:
154
url: "https://api.github.com/orgs/{{ github_owner | default(github_account) }}/actions/runners/registration-token"

tasks/collect_info_repo.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
---
2-
- name: Check variables
3-
assert:
4-
that:
5-
- github_account is defined
6-
- access_token is defined and access_token | length>0
7-
quiet: true
8-
run_once: yes
9-
tags:
10-
- install
11-
- uninstall
12-
132
- name: Get registration token (RUN ONCE)
143
uri:
154
url: "https://api.github.com/repos/{{ github_owner | default(github_account) }}/{{ github_repo }}/actions/runners/registration-token"

tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---
2+
- include_tasks: assert.yml
3+
tags:
4+
- install
5+
- uninstall
6+
27
- include_tasks: collect_info_org.yml
38
when: runner_org
49
tags:

0 commit comments

Comments
 (0)