diff options
author | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2021-12-02 17:54:15 +0100 |
---|---|---|
committer | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2021-12-02 17:54:15 +0100 |
commit | 032453fd5919eee74c368b85ddebcd53fbdf25d1 (patch) | |
tree | da41dec241e7f7c410224a521b9e51de465affda /.github/workflows/pr.yml | |
parent | 51a5caaf6cffe2a422e4e918ac278d7b5ffe35dd (diff) | |
download | ansible-netdata_straight-032453fd5919eee74c368b85ddebcd53fbdf25d1.tar.gz ansible-netdata_straight-032453fd5919eee74c368b85ddebcd53fbdf25d1.tar.zst ansible-netdata_straight-032453fd5919eee74c368b85ddebcd53fbdf25d1.zip |
CD: publish to ansible galaxy
Diffstat (limited to '.github/workflows/pr.yml')
-rw-r--r-- | .github/workflows/pr.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 36a66a1..1ec82b9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml | |||
@@ -7,6 +7,8 @@ on: | |||
7 | pull_request: | 7 | pull_request: |
8 | branches: | 8 | branches: |
9 | - master | 9 | - master |
10 | release: | ||
11 | types: [created, edited, published] | ||
10 | jobs: | 12 | jobs: |
11 | molecule_default: | 13 | molecule_default: |
12 | runs-on: ubuntu-latest | 14 | runs-on: ubuntu-latest |
@@ -40,3 +42,15 @@ jobs: | |||
40 | - uses: gofrolist/molecule-action@v2 | 42 | - uses: gofrolist/molecule-action@v2 |
41 | with: | 43 | with: |
42 | molecule_args: --scenario-name features | 44 | molecule_args: --scenario-name features |
45 | publish: | ||
46 | runs-on: ubuntu-latest | ||
47 | needs: | ||
48 | - molecule_default | ||
49 | - molecule_features | ||
50 | if: ${{ github.event_name == 'release' }} | ||
51 | steps: | ||
52 | - uses: actions/checkout@v2 | ||
53 | - name: Upload to ansible-galaxy | ||
54 | uses: robertdebock/galaxy-action@1.1.0 | ||
55 | with: | ||
56 | galaxy_api_key: '${{ secrets.GALAXY_API_KEY }}' | ||