diff --git a/generate.yml b/generate.yml index 566fdf3..557d7c2 100755 --- a/generate.yml +++ b/generate.yml @@ -134,6 +134,7 @@ uri: url: "https://api.github.com/repos/robertdebock/ansible-role-{{ role_name }}/contributors" register: github_contributors + failed_when: no - name: generate secure hash command: "/usr/bin/travis encrypt --pro robertdebock:{{ secure.slack_token }} --no-interactive" diff --git a/templates/README.md.j2 b/templates/README.md.j2 index e34ef69..aa75d00 100644 --- a/templates/README.md.j2 +++ b/templates/README.md.j2 @@ -143,11 +143,13 @@ image="debian" tag="stable" tox I'd like to thank everybody that made contributions to this repository. It motivates me, improves the code and is just fun to collaborate. +{% if github_contributors.json is defined and contributor.login is defined %} {% for contributor in github_contributors.json %}{% if contributor.login != "robertdebock" %} - [{{ contributor.login }}](https://github.com/{{ contributor.login }}) {% endif %} {% endfor %} {% endif %} +{% endif %} ## [Author Information](#author-information)