Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Autorelease

Autorelease #16

Workflow file for this run

name: Autorelease
on:
schedule:
- cron: 0 20 * * 0
workflow_dispatch:
jobs:
release:
name: Generate Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
- run: echo LATEST_VERSION=$(git rev-list -n 1 $(git describe --abbrev=0 --tags))>> $GITHUB_ENV
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_ACTION_KEY }}
- name: Set Calver Version
uses: Nelyx/action-calver@v1.1.0
id: setcalver
with:
default_branch: 'refs/heads/master'
format: 'YYYY.M'
version_prefix: ''
- name: Release
if: ${{ env.LATEST_VERSION != github.sha }}
uses: softprops/action-gh-release@v2
with:
token: ${{ steps.app-token.outputs.token }}
draft: false
prerelease: false
tag_name: ${{ steps.setcalver.outputs.package_version }}
generate_release_notes: true