10 types: [created, edited, published]
13 runs-on: ubuntu-latest
16 image: fretlink/rundeckforci:3.4.7-latest
20 RUNDECK_TOKENS_FILE: /etc/tokens.properties
23 --health-cmd="wget -t 1 -q -O /dev/null http://localhost:4440"
28 - uses: actions/checkout@v2
30 path: "${{ github.repository }}"
31 - name: Lint Ansible Playbook
32 uses: ansible/ansible-lint-action@master
34 targets: "${{ github.repository }}"
36 sudo apt update && sudo apt install -y python3-pip
37 pip3 install -r ${{ github.repository }}/requirements.txt
38 pip3 install -r ${{ github.repository }}/tests/requirements.txt
39 - run: http --ignore-stdin localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json
41 cd ${{ github.repository }}/tests && ansible-playbook -i inventory test.yml
43 runs-on: ubuntu-latest
45 if: ${{ github.event_name == 'release' }}
47 - uses: actions/checkout@v2
48 - name: Upload to ansible-galaxy
49 uses: robertdebock/galaxy-action@1.1.0
51 galaxy_api_key: '${{ secrets.GALAXY_API_KEY }}'