Skip to content

docs: update changelog for version up to v0.9.1 #1

docs: update changelog for version up to v0.9.1

docs: update changelog for version up to v0.9.1 #1

name: Import Ansible Role
on: # yamllint disable-line rule:truthy
push:
tags:
- '*'
jobs:
import-role:
runs-on: ubuntu-latest
steps:
- name: Checkout default branch to read VERSION
uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
- name: Capture VERSION content
id: read_version
run: echo "VERSION_FILE_CONTENT=$(cat VERSION)" >> $GITHUB_ENV
- name: Checkout tag source
uses: actions/checkout@v4 # default ref is the tag that triggered
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install ansible-core
run: |
python -m pip install --upgrade pip
pip install ansible-core
- name: Import role to Ansible Galaxy
if: ${{ github.ref_name == env.VERSION_FILE_CONTENT }}
env:
ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
run: |
ansible-galaxy role import rmenage ansible-role-hardened-docker