Skip to content

Commit 5a92df5

Browse files
Merge pull request #55 from MonolithProjects/develop
Added variables validation
2 parents 5779228 + 93e1758 commit 5a92df5

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: molecule test
22

33
on:
4-
push:
5-
branches:
6-
- master
74
pull_request:
85
branches:
96
- master

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
- name: Build service name
3939
set_fact:
40-
runner_service: "actions.runner.{{ github_owner | default(github_account[:45]) }}.{{ runner_name }}.service"
40+
runner_service: "actions.runner.{{ (github_owner | default(github_account))[:45] }}.{{ runner_name }}.service"
4141
tags:
4242
- install
4343
- uninstall

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)