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 }}"
32 sudo apt update && sudo apt install -y python3-pip
33 pip3 install -r ${{ github.repository }}/requirements.txt
34 pip3 install -r ${{ github.repository }}/tests/requirements.txt
35 - run: http --ignore-stdin localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json
37 cd ${{ github.repository }}/tests && ansible-playbook -i inventory test.yml
39 runs-on: ubuntu-latest
41 if: ${{ github.event_name == 'release' }}
43 - uses: actions/checkout@v2
44 - name: Upload to ansible-galaxy
45 uses: artis3n/ansible_galaxy_collection@v2
47 api_key: '${{ secrets.GALAXY_API_KEY }}'
48 galaxy_version: '${{ github.event.release.tag_name }}'