Skip to content

Add Galaxy role import to Actions #16

Add Galaxy role import to Actions

Add Galaxy role import to Actions #16

Workflow file for this run

name: Linter the project
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
container:
image: quay.io/mmul/kpa
options: --user root
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check with yamllint
run: yamllint collections/ defaults/ handlers/ meta/ tasks/ tests/
- name: Check with ansible-lint
run: ansible-lint tests/kubelab.yml
- name: Install role dependencies
run: ansible-galaxy install -r collections/requirements.yml
- name: Check with ansible-playbook --syntax-check
run: ansible-playbook --syntax-check tests/kubelab.yml
trigger_galaxy_import:
runs-on: ubuntu-latest
needs: test

Check failure on line 25 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Linter the project

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 25, Col: 12): Job 'trigger_galaxy_import' depends on unknown job 'test'.
container:
image: ghcr.io/mmul-it/kpa
options: --user root
if: github.ref == 'refs/heads/main'
steps:
- name: Trigger Ansible Galaxy to import the role
run: ansible-galaxy role import --token ${{ secrets.GALAXY_API_KEY }} ${{ github.repository_owner }} ${{ github.event.repository.name }}