Merge pull request #219 from geerlingguy/201-convert-to-gh-actions

201 convert to gh actions
This commit is contained in:
Jeff Geerling 2021-04-19 10:28:30 -05:00 committed by GitHub
commit 5b2e65d298
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 12 deletions

View file

@ -1,2 +1,3 @@
skip_list:
- '106'
- 'yaml'
- 'role-name'

View file

@ -29,12 +29,11 @@ jobs:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install yamllint ansible-lint
run: pip3 install yamllint
- name: Lint code.
run: |
yamllint .
ansible-lint
molecule:
name: Molecule

View file

@ -7,9 +7,9 @@
name: Release
'on':
release:
types:
- published
push:
tags:
- '*'
defaults:
run:
@ -35,8 +35,4 @@ jobs:
run: pip3 install ansible-base
- name: Trigger a new import on Galaxy.
run: >-
ansible-galaxy role import
--api-key ${{ secrets.GALAXY_API_KEY }}
$(echo $GITHUB_REPOSITORY | cut -d/ -f1)
$(echo $GITHUB_REPOSITORY | cut -d/ -f2)
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
*.retry
*/__pycache__
*.pyc
.cache

View file

@ -13,6 +13,5 @@ platforms:
pre_build_image: true
provisioner:
name: ansible
log: true
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}