Skip to content

Commit

Permalink
Assert github_repo exists in runners for a repo
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-alm authored May 31, 2023
1 parent dc13c70 commit 0561acd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@
- runner_org | bool == True or runner_org == False
fail_msg: "runner_org should be a boolean value"
run_once: true

- name: Check github_repo variable (RUN ONCE)
ansible.builtin.assert:
that:
- github_repo is defined
- github_repo | length > 0
fail_msg: "github_repo was not found or is using an invalid format."
run_once: true
when: not runner_org

0 comments on commit 0561acd

Please sign in to comment.