add prerelease to docs wf, generate on release wf

This commit is contained in:
Guido Grazioli 2022-03-31 14:56:41 +02:00
commit 5a45d1f4f8
No known key found for this signature in database
GPG key ID: 22C8C31EF2BC093B
2 changed files with 65 additions and 13 deletions

View file

@ -6,7 +6,6 @@ on:
- main
tags:
- "[0-9]+.[0-9]+.[0-9]+"
pull_request:
env:
COLORTERM: 'yes'
@ -71,7 +70,9 @@ jobs:
fi
done
antsibull-changelog lint -vvv
antsibull-changelog generate
if [[ "${{github.ref}}" == "refs/heads/main" ]]; then
antsibull-changelog release --version "prerelease-$(grep version galaxy.yml | awk -F'"' '{ print $2 }')"
fi
working-directory: ansible_collections/middleware_automation/keycloak
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}