Skip to content

Commit c2acf96

Browse files
Add assert task
1 parent eeb4a66 commit c2acf96

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tasks/collect_info_org.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
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+
213
- name: Get registration token (RUN ONCE)
314
uri:
415
url: "https://api.github.com/orgs/{{ github_owner | default(github_account) }}/actions/runners/registration-token"

tasks/collect_info_repo.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
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+
213
- name: Get registration token (RUN ONCE)
314
uri:
415
url: "https://api.github.com/repos/{{ github_owner | default(github_account) }}/{{ github_repo }}/actions/runners/registration-token"

0 commit comments

Comments
 (0)