From f3d2b61765b56ffc20d5cd2e471780a9dc234708 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 14 Apr 2024 19:25:36 +0200 Subject: [PATCH] fix: ci --- .forgejo/workflows/ansible-galaxy.yml | 4 +++- .forgejo/workflows/ansible-lint.yml | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ansible-galaxy.yml b/.forgejo/workflows/ansible-galaxy.yml index a5172d1..83cc0af 100644 --- a/.forgejo/workflows/ansible-galaxy.yml +++ b/.forgejo/workflows/ansible-galaxy.yml @@ -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 }} diff --git a/.forgejo/workflows/ansible-lint.yml b/.forgejo/workflows/ansible-lint.yml index 2ef0160..d1fed48 100644 --- a/.forgejo/workflows/ansible-lint.yml +++ b/.forgejo/workflows/ansible-lint.yml @@ -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