docs(changelog): version 1.10.1 [citest skip] (#145) #161
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
--- | |
name: Ansible Lint | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
merge_group: | |
branches: | |
- main | |
types: | |
- checks_requested | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
ansible_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update pip, git | |
run: | | |
set -euxo pipefail | |
sudo apt update | |
sudo apt install -y git | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Fix up role meta/main.yml namespace and name | |
run: | | |
set -euxo pipefail | |
mm=meta/main.yml | |
if [ -f "$mm" ]; then | |
if ! grep -q '^ *namespace:' "$mm"; then | |
sed "/galaxy_info:/a\ namespace: linux_system_roles" -i "$mm" | |
fi | |
if ! grep -q '^ *role_name:' "$mm"; then | |
sed "/galaxy_info:/a\ role_name: ha_cluster" -i "$mm" | |
fi | |
fi | |
- name: Run ansible-lint | |
uses: ansible-community/ansible-lint-action@v6 |