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