Skip to content

fix: Ansible facts pull for specific Ubuntu version #11

fix: Ansible facts pull for specific Ubuntu version

fix: Ansible facts pull for specific Ubuntu version #11

Workflow file for this run

name: "Release"
on:
push:
tags:
- "v*"
jobs:
tagged-release:
name: "Release"
runs-on: "ubuntu-24.04"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | grep -v 'latest' | tail -2 | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
- name: Generate CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ env.previousTag }}
- name: Create new release
uses: ncipollo/[email protected]
with:
allowUpdates: false
draft: false
makeLatest: true
tag: ${{ github.ref_name }}
prerelease: false
name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ github.token }}
- uses: dev-drprasad/[email protected]
with:
delete_prerelease_only: true
keep_latest: 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}