fix: ci
Some checks failed
Ansible Lint / build (push) Failing after 30s

This commit is contained in:
s3lph 2024-04-14 19:25:36 +02:00
parent 245d825a5f
commit f3d2b61765
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
2 changed files with 8 additions and 2 deletions

View file

@ -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 }}

View file

@ -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