Adding version badge and generate secure string differently.

This commit is contained in:
Robert de Bock 2020-06-05 13:05:55 +02:00
parent e8b743a5c3
commit 3e2606077f
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -2,9 +2,9 @@
{{ meta.galaxy_info.description }} {{ meta.galaxy_info.description }}
|Travis|GitHub|Quality|Downloads| |Travis|GitHub|Quality|Downloads|Version|
|------|------|-------|---------| |------|------|-------|---------|-------|
|[![travis](https://travis-ci.com/{{ travis_namespace }}/ansible-role-{{ role_name }}.svg?branch=master)](https://travis-ci.com/{{ travis_namespace }}/ansible-role-{{ role_name }})|[![github](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/workflows/Ansible%20Molecule/badge.svg)](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/actions)|[![quality](https://img.shields.io/ansible/quality/{{ galaxy_id.stdout }})](https://galaxy.ansible.com/{{ github_namespace }}/{{ role_name }})|[![downloads](https://img.shields.io/ansible/role/d/{{ galaxy_id.stdout }})](https://galaxy.ansible.com/{{ github_namespace }}/{{ role_name }})| |[![travis](https://travis-ci.com/{{ travis_namespace }}/ansible-role-{{ role_name }}.svg?branch=master)](https://travis-ci.com/{{ travis_namespace }}/ansible-role-{{ role_name }})|[![github](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/workflows/Ansible%20Molecule/badge.svg)](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/actions)|[![quality](https://img.shields.io/ansible/quality/{{ galaxy_id.stdout }})](https://galaxy.ansible.com/{{ github_namespace }}/{{ role_name }})|[![downloads](https://img.shields.io/ansible/role/d/{{ galaxy_id.stdout }})](https://galaxy.ansible.com/{{ github_namespace }}/{{ role_name }})|[![Version](https://img.shields.io/github/release/{{ github_namespace }}/ansible-role-{{ role_name }}.svg)](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/releases/)|
## [Example Playbook](#example-playbook) ## [Example Playbook](#example-playbook)

View File

@ -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