Adding version badge and generate secure string differently.
This commit is contained in:
parent
e8b743a5c3
commit
3e2606077f
|
|
@ -131,7 +131,7 @@
|
||||||
name: secure
|
name: secure
|
||||||
|
|
||||||
- name: generate secure hash
|
- name: generate secure hash
|
||||||
command: /usr/bin/travis encrypt --pro {{ secure.slack_token }} --no-interactive
|
command: "/usr/bin/travis encrypt --pro robertdebock:{{ secure.slack_token }}#build --no-interactive"
|
||||||
register: travis_secure
|
register: travis_secure
|
||||||
when:
|
when:
|
||||||
- travis.notifications.slack.secure | length < 512
|
- travis.notifications.slack.secure | length < 512
|
||||||
|
|
@ -141,7 +141,7 @@
|
||||||
travis:
|
travis:
|
||||||
notifications:
|
notifications:
|
||||||
slack:
|
slack:
|
||||||
secure: "{{ travis_secure.stdout }}"
|
secure: "{{ travis_secure.stdout | regex_replace('\"', '') }}"
|
||||||
when:
|
when:
|
||||||
travis_secure.stdout is defined
|
travis_secure.stdout is defined
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
{{ meta.galaxy_info.description }}
|
{{ meta.galaxy_info.description }}
|
||||||
|
|
||||||
|Travis|GitHub|Quality|Downloads|
|
|Travis|GitHub|Quality|Downloads|Version|
|
||||||
|------|------|-------|---------|
|
|------|------|-------|---------|-------|
|
||||||
|[](https://travis-ci.com/{{ travis_namespace }}/ansible-role-{{ role_name }})|[](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/actions)|[](https://galaxy.ansible.com/{{ github_namespace }}/{{ role_name }})|[](https://galaxy.ansible.com/{{ github_namespace }}/{{ role_name }})|
|
|[](https://travis-ci.com/{{ travis_namespace }}/ansible-role-{{ role_name }})|[](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/actions)|[](https://galaxy.ansible.com/{{ github_namespace }}/{{ role_name }})|[](https://galaxy.ansible.com/{{ github_namespace }}/{{ role_name }})|[](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/releases/)|
|
||||||
|
|
||||||
## [Example Playbook](#example-playbook)
|
## [Example Playbook](#example-playbook)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,5 +37,5 @@ script:
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
slack:
|
slack:
|
||||||
secure: {{ travis.notifications.slack.secure }}
|
secure: "{{ travis.notifications.slack.secure }}"
|
||||||
email: false
|
email: false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue