diff options
author | Gaƫtan <36162164+gaetanfl@users.noreply.github.com> | 2021-12-03 10:37:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 10:37:24 +0100 |
commit | d1aff1401d55822962111b159a56682b9446b7ae (patch) | |
tree | da41dec241e7f7c410224a521b9e51de465affda /.github | |
parent | 51a5caaf6cffe2a422e4e918ac278d7b5ffe35dd (diff) | |
parent | 032453fd5919eee74c368b85ddebcd53fbdf25d1 (diff) | |
download | ansible-netdata_straight-master.tar.gz ansible-netdata_straight-master.tar.zst ansible-netdata_straight-master.zip |
CD: publish to ansible galaxy
Diffstat (limited to '.github')
-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 }}' | ||