Skip to content

Commit

Permalink
Merge pull request #430 from Checkmk/devel
Browse files Browse the repository at this point in the history
Bugfix GitHub Actions
  • Loading branch information
robin-checkmk authored Aug 30, 2023
2 parents 6dabd80 + 6fccaca commit b66db55
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/labels-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@ lookup:folder:

lookup:folders:
- 'Component Name: lookup_folders'

lookup:host:
- 'Component Name: lookup_host'

lookup:hosts:
- 'Component Name: lookup_hosts'
10 changes: 8 additions & 2 deletions .github/labels-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ lookup:version:
- 'plugins/modules/lookup/version.py'

lookup:folder:
- 'Component Name: lookup_folder'
- 'plugins/modules/lookup/folder.py'

lookup:folders:
- 'Component Name: lookup_folders'
- 'plugins/modules/lookup/folders.py'

lookup:host:
- 'plugins/modules/lookup/host.py'

lookup:hosts:
- 'plugins/modules/lookup/hosts.py'
15 changes: 10 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---

env:
NAMESPACE: checkmk
COLLECTION_NAME: general

name: Release Collection

on: # yamllint disable-line rule:truthy
Expand Down Expand Up @@ -85,13 +90,13 @@ jobs:
run: ansible-galaxy collection build build/src --force

- name: Install Ansible Collection
run: ansible-galaxy collection install --no-deps ./checkmk-general-${{ steps.current_version.outputs.version }}.tar.gz
run: ansible-galaxy collection install --no-deps ./${{env.NAMESPACE}}-${{env.COLLECTION_NAME}}-${{ steps.current_version.outputs.version }}.tar.gz

- name: Compile Collection Changelog
run: antsibull-changelog release

- name: Compile Collection Docs
run: antsibull-docs collection --use-current --squash-hierarchy --fail-on-error --dest-dir ./docs/ checkmk.general
run: antsibull-docs collection --use-current --squash-hierarchy --fail-on-error --dest-dir ./docs/ ${{env.NAMESPACE}}.${{env.COLLECTION_NAME}}

- name: Create Pull Request for docs and changelog against devel branch
uses: peter-evans/create-pull-request@v5
Expand Down Expand Up @@ -136,13 +141,13 @@ jobs:
prerelease: false
name: v${{ steps.current_version.outputs.version }}
tag_name: v${{ steps.current_version.outputs.version }}
files: checkmk-general-${{ steps.current_version.outputs.version }}.tar.gz
files: ${{env.NAMESPACE}}-${{env.COLLECTION_NAME}}-${{ steps.current_version.outputs.version }}.tar.gz
body: |
# Ansible Collection: checkmk.general
# Ansible Collection: ${{env.NAMESPACE}}.${{env.COLLECTION_NAME}}
For information about this collection and how to install it, refer to the [README](https://github.com/Checkmk/ansible-collection-checkmk.general/blob/main/README.md).
For a detailed changelog, refer to the [CHANGELOG](https://github.com/Checkmk/ansible-collection-checkmk.general/blob/main/CHANGELOG.rst).
- name: Publish Ansible Collection to the Galaxy
run: ansible-galaxy collection publish checkmk-general-${{ steps.current_version.outputs.version }}.tar.gz --api-key ${{ secrets.GALAXY_API_KEY }}
run: ansible-galaxy collection publish ${{env.NAMESPACE}}-${{env.COLLECTION_NAME}}-${{ steps.current_version.outputs.version }}.tar.gz --api-key ${{ secrets.GALAXY_API_KEY }}

0 comments on commit b66db55

Please sign in to comment.