Skip to content

Commit 73569b8

Browse files
authored
Add Ansible Galaxy imports (#147)
* Add Galaxy import test * Add missing authors (cannot be empty) * Update deprecated actions * Add Galaxy import workflow on release publication Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent fb4a196 commit 73569b8

File tree

3 files changed

+52
-5
lines changed

3 files changed

+52
-5
lines changed

.github/workflows/publish_galaxy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
3+
# Copyright 2024 Cloudera, Inc. All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
name: Publish to Ansible Galaxy
18+
19+
on:
20+
release:
21+
types: [published]
22+
23+
jobs:
24+
galaxy_release:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Publish collection to Ansible Galaxy
33+
uses: ansible/ansible-publish-action@v1.0.0
34+
with:
35+
api_key: "${{ secrets.GALAXY_API_KEY }}"

.github/workflows/validate_pr.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout repository
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131

3232
- name: Setup Python and caching
33-
uses: actions/setup-python@v4
33+
uses: actions/setup-python@v5
3434
with:
3535
python-version: '3.9'
3636
cache: 'pip'
@@ -75,9 +75,16 @@ jobs:
7575
run: |
7676
mkdir -p ./pr
7777
echo $PR_NUMBER > ./pr/pr_number
78-
78+
7979
- name: Upload the PR number
80-
uses: actions/upload-artifact@v3
80+
uses: actions/upload-artifact@v4
8181
with:
8282
name: pr_number
8383
path: pr/
84+
85+
import-galaxy:
86+
needs: validate
87+
permissions:
88+
contents: read
89+
name: Import collection with Galaxy importer
90+
uses: ansible-community/github-action-test-galaxy-import/.github/workflows/test-galaxy-import.yml@main

galaxy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ namespace: cloudera
1818
name: cloud
1919
version: 2.3.1
2020
readme: README.md
21-
authors: []
21+
authors:
22+
- Jim Enright @jenright
23+
- Ronald Suplina @rsuplina
24+
- Webster Mudge @wmudge
2225

2326
description: >
2427
A set of modules and other artifacts for interacting with the services and endpoints
@@ -30,6 +33,8 @@ tags:
3033
- azure
3134
- aws
3235
- gcp
36+
- data_service
37+
- data_hub
3338

3439
dependencies: {}
3540

0 commit comments

Comments
 (0)