diff --git a/generate.yml b/generate.yml index d4fe867..2d8cf30 100755 --- a/generate.yml +++ b/generate.yml @@ -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 diff --git a/templates/README.md.j2 b/templates/README.md.j2 index b42e608..4264c5d 100644 --- a/templates/README.md.j2 +++ b/templates/README.md.j2 @@ -2,9 +2,9 @@ {{ meta.galaxy_info.description }} -|Travis|GitHub|Quality|Downloads| -|------|------|-------|---------| -|[![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|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 }})|[![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) diff --git a/templates/travis.yml.j2 b/templates/travis.yml.j2 index 807a45b..c060ddc 100644 --- a/templates/travis.yml.j2 +++ b/templates/travis.yml.j2 @@ -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