This commit is contained in:
parent
245d825a5f
commit
f3d2b61765
2 changed files with 8 additions and 2 deletions
|
@ -9,15 +9,17 @@ on:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set version in galaxy.yml
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
sed -re "s/^version:.*$/version: ${VERSION}/" -i galaxy.yml
|
||||
- name: Upload collection to Ansible Galaxy
|
||||
|
||||
uses: https://github.com/ansible/ansible-publish-action@v1.0.0
|
||||
with:
|
||||
api_key: ${{ secrets.GALAXY_API_KEY }}
|
||||
|
|
|
@ -5,9 +5,13 @@ on: [push, pull_request]
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run ansible-lint
|
||||
uses: https://github.com/ansible/ansible-lint@main
|
||||
with:
|
||||
setup_python: false
|
||||
|
|
Loading…
Reference in a new issue