Skip to content

Commit a4c37f3

Browse files
Merge pull request #163 from renan-alm/patch-1
Assert github_repo exists in runners for a repo
2 parents dc13c70 + 0561acd commit a4c37f3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tasks/assert.yml

+9
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@
2020
- runner_org | bool == True or runner_org == False
2121
fail_msg: "runner_org should be a boolean value"
2222
run_once: true
23+
24+
- name: Check github_repo variable (RUN ONCE)
25+
ansible.builtin.assert:
26+
that:
27+
- github_repo is defined
28+
- github_repo | length > 0
29+
fail_msg: "github_repo was not found or is using an invalid format."
30+
run_once: true
31+
when: not runner_org

0 commit comments

Comments
 (0)