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: skip_list:
- '106' - 'yaml'
- 'role-name'

View file

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

View file

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

View file

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