Skip to content

Commit

Permalink
Merge pull request #163 from renan-alm/patch-1
Browse files Browse the repository at this point in the history
Assert github_repo exists in runners for a repo
  • Loading branch information
MonolithProjects authored Jul 24, 2023
2 parents dc13c70 + 0561acd commit a4c37f3
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 a4c37f3

Please sign in to comment.