Skip to content

fix(plugins): replace ansible.utils.ipaddr with stdlib-based test plu… #7

fix(plugins): replace ansible.utils.ipaddr with stdlib-based test plu…

fix(plugins): replace ansible.utils.ipaddr with stdlib-based test plu… #7

Workflow file for this run

---
name: Release
on:
push:
branches: [main]
paths:
- galaxy.yml
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Get version from galaxy.yml
id: version
run: |
VERSION=$(grep '^version:' galaxy.yml | awk '{print $2}')
echo "version=${VERSION}" >> "${GITHUB_OUTPUT}"
- name: Check if release already exists
id: check
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if gh release view "v${{ steps.version.outputs.version }}" > /dev/null 2>&1; then
echo "exists=true" >> "${GITHUB_OUTPUT}"
else
echo "exists=false" >> "${GITHUB_OUTPUT}"
fi
- name: Create release
if: steps.check.outputs.exists == 'false'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "v${{ steps.version.outputs.version }}" \
--title "v${{ steps.version.outputs.version }}" \
--generate-notes