diff options
author | Gaƫtan <36162164+gaetanfl@users.noreply.github.com> | 2021-11-19 17:05:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-19 17:05:04 +0100 |
commit | a50affb4dd690b545df3f9cd935a4f6861a4dfa9 (patch) | |
tree | e4a087002e066c414c0276da638e0693e614f125 /.github | |
parent | d11535de777b5472de560d823edafe2373e702ae (diff) | |
parent | ab34f62e7db0d4f0a6e7ebb86c256c42345688e9 (diff) | |
download | ansible-rundeck-jobs-a50affb4dd690b545df3f9cd935a4f6861a4dfa9.tar.gz ansible-rundeck-jobs-a50affb4dd690b545df3f9cd935a4f6861a4dfa9.tar.zst ansible-rundeck-jobs-a50affb4dd690b545df3f9cd935a4f6861a4dfa9.zip |
Merge pull request #13 from gaetanfl/publish_on_release
publish to ansible galaxy on release
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/pr.yml | 13 |
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] | ||
9 | jobs: | 11 | jobs: |
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 }}' | ||