-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies for ansible validated content
Updated one of the project dependencies to use redhat.rhel_system_roles instead of fedora system roles. Moved the CODEOWNERS file to the root of the project instead of under .github folder.
- Loading branch information
Showing
8 changed files
with
60 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
name: Ansible Lint | ||
|
||
on: [push, pull_request] # yamllint disable-line rule:truthy | ||
|
||
env: | ||
COLLECTION_NAMESPACE: infra | ||
COLLECTION_NAME: convert2rhel | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install Ansible | ||
run: pip install --upgrade ansible-core | ||
|
||
- name: Configure Automation Hub | ||
run: | | ||
cat << EOF > ansible.cfg | ||
[galaxy] | ||
server_list = rh_automation_hub | ||
[galaxy_server.rh_automation_hub] | ||
url=https://console.redhat.com/api/automation-hub/ | ||
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token | ||
token=${{ secrets.CONSOLE_API_KEY }} | ||
EOF | ||
- name: Convert role to collection format | ||
run: | | ||
set -euxo pipefail | ||
coll_dir="ansible_collections/${{ env.COLLECTION_NAMESPACE }}/${{ env.COLLECTION_NAME }}" | ||
# ansible-lint action requires a .git directory??? | ||
# https://github.com/ansible/ansible-lint/blob/main/action.yml#L45 | ||
mkdir -p "$coll_dir/.git" | ||
- name: Run ansible-lint | ||
uses: ansible/ansible-lint@v24 | ||
with: | ||
working_directory: . | ||
|
||
- name: Remove ansible.cfg | ||
run: | | ||
rm ansible.cfg | ||
... |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,3 +133,6 @@ dmypy.json | |
|
||
install-deps | ||
pre-commit | ||
|
||
# Ignore ansible.cfg | ||
ansible.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters