Get latest kavita release #298
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: Get latest kavita release | |
on: | |
schedule: | |
- cron: '0 10 * * *' | |
workflow_dispatch: | |
jobs: | |
get-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: oprypin/find-latest-tag@v1 | |
with: | |
repository: Kareadita/Kavita | |
releases-only: true | |
id: compare-releases | |
- uses: mukunku/[email protected] | |
id: checkTag | |
with: | |
tag: ${{ steps.compare-releases.outputs.tag }} | |
- name: Bump version and push tag | |
id: tag_version | |
if: steps.checkTag.outputs.exists == 'false' | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.ACTIONS_PAT }} | |
custom_tag: ${{ steps.compare-releases.outputs.tag }} | |
tag_prefix: '' | |
- name: Create a GitHub release | |
if: steps.checkTag.outputs.exists == 'false' | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tag_version.outputs.new_tag }} | |
name: Release ${{ steps.tag_version.outputs.new_tag }} | |
body: ${{ steps.tag_version.outputs.changelog }} | |
token: ${{ secrets.ACTIONS_PAT }} |