aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-11-19 16:53:27 +0100
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-11-19 17:00:53 +0100
commitab34f62e7db0d4f0a6e7ebb86c256c42345688e9 (patch)
treee4a087002e066c414c0276da638e0693e614f125 /.github/workflows
parentd11535de777b5472de560d823edafe2373e702ae (diff)
downloadansible-rundeck-jobs-ab34f62e7db0d4f0a6e7ebb86c256c42345688e9.tar.gz
ansible-rundeck-jobs-ab34f62e7db0d4f0a6e7ebb86c256c42345688e9.tar.zst
ansible-rundeck-jobs-ab34f62e7db0d4f0a6e7ebb86c256c42345688e9.zip
publish to ansible galaxy on release
Diffstat (limited to '.github/workflows')
-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 }}'