This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
Release new version #14
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: Release new version | |
on: | |
schedule: | |
- cron: '0 1 * * 1' | |
workflow_dispatch: | |
jobs: | |
release: | |
if: github.ref == 'refs/heads/master' | |
name: "Release" | |
runs-on: "ubuntu-22.04" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Terminate if no changes since last tag | |
run: | | |
if [ "$(git rev-list $(git describe --abbrev=0 --tags)..HEAD --count -- flake.nix flake.lock imgs/ lib/ modules/ pkgs/ templates/)" -eq "0" ]; then exit 1; fi | |
- name: "Generate tag" | |
id: tag | |
run: echo tag=$(echo "v23.11.$(date "+%Y%m%d")") >> "$GITHUB_OUTPUT" | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "${{ steps.tag.outputs.tag }}" | |
prerelease: false |