mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
---
|
|
# yaml-language-server: https://json.schemastore.org/github-workflow.json
|
|
name: Release Daily State
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 21 * * *' # 00:00 at Europe/Helsinki
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
new-daily-release:
|
|
runs-on: self-hosted
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-request: write
|
|
release: write
|
|
|
|
outputs:
|
|
created: ${{ steps.daily-version.outputs.created }}
|
|
version: ${{ steps.daily-version.outputs.version }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Create tag if necessary
|
|
uses: fregante/daily-version-action@v2
|
|
id: daily-version
|
|
|
|
- name: Create changelog text
|
|
if: steps.daily-version.outputs.created
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
|
|
- name: Create release
|
|
if: steps.daily-version.outputs.created
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
tag_name: ${{ steps.daily-version.outputs.version }}
|
|
name: Release ${{ steps.daily-version.outputs.version }}
|
|
body: ${{ steps.changelog.outputs.changes }}
|