aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/pr.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pr.yml')
-rw-r--r--.github/workflows/pr.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 3daa0e2..1be06b7 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -6,6 +6,8 @@ on:
6 pull_request: 6 pull_request:
7 branches: 7 branches:
8 - master 8 - master
9 release:
10 types: [created, edited, published]
9jobs: 11jobs:
10 tests: 12 tests:
11 runs-on: ubuntu-latest 13 runs-on: ubuntu-latest
@@ -33,3 +35,14 @@ jobs:
33 - run: http --ignore-stdin localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json 35 - run: http --ignore-stdin localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json
34 - run: | 36 - run: |
35 cd ${{ github.repository }}/tests && ansible-playbook -i inventory test.yml 37 cd ${{ github.repository }}/tests && ansible-playbook -i inventory test.yml
38 publish:
39 runs-on: ubuntu-latest
40 needs: tests
41 if: ${{ github.event_name == 'release' }}
42 steps:
43 - uses: actions/checkout@v2
44 - name: Upload to ansible-galaxy
45 uses: artis3n/ansible_galaxy_collection@v2
46 with:
47 api_key: '${{ secrets.GALAXY_API_KEY }}'
48 galaxy_version: '${{ github.event.release.tag_name }}'