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