From c1bbfb8ce4cdbcdaba5905e7b6f16da9540684c0 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 16 Dec 2025 20:18:02 +0100 Subject: [PATCH 1/2] chore: set up mono in workflows Signed-off-by: squidfunk --- .github/workflows/commit.yml | 13 ++++++------- .github/workflows/release.yml | 15 +++++++-------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 8f5cb2c..24e6b0f 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -41,19 +41,18 @@ jobs: ref: ${{ github.event.pull_request.base.sha }} fetch-depth: 0 - - name: Set up ctrl-z - uses: squidfunk/ctrl-z@v0 + - name: Set up mono + uses: zensical/mono@v0 - name: Get commit messages run: | base="${{ github.event.pull_request.base.sha }}" head="${{ github.event.pull_request.head.sha }}" - git log "${base}..${head}" --pretty=format:"%s%n" > commits.txt + git log "${base}..${head}" --format:"%h" > commits.txt - name: Validate commit messages run: | - while IFS= read -r commit; do - [ -z "$commit" ] && continue - ctrl-z validate commit "$commit" + while IFS= read -r id; do + [ -z "$id" ] && continue + mono validate commit --id $id done < commits.txt - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81ea4e4..7023876 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,7 +80,6 @@ jobs: git tag -f $MAJOR_VERSION $VERSION git push -f origin $MAJOR_VERSION - release: name: Create release runs-on: ubuntu-latest @@ -95,8 +94,8 @@ jobs: fetch-depth: 0 fetch-tags: true - - name: Set up ctrl-z - uses: squidfunk/ctrl-z@v0 + - name: Set up mono + uses: zensical/mono@v0 - name: Download artifacts uses: actions/download-artifact@v4 @@ -108,7 +107,7 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - ctrl-z version changelog -s $VERSION > notes.txt + mono version changelog -s $VERSION > notes.txt gh release create $VERSION \ --title ${VERSION#v} \ --notes-file notes.txt \ @@ -140,13 +139,13 @@ jobs: fetch-depth: 0 fetch-tags: true - - name: Set up ctrl-z - uses: squidfunk/ctrl-z@v0 + - name: Set up mono + uses: zensical/mono@v0 - name: Publish to crates.io run: | - ctrl-z version changed $VERSION | while read -r package; do - cargo publish --package $package --no-verify --locked --dry-run + mono version changed $VERSION | while read -r package; do + cargo publish --package $package --no-verify --locked done env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} From 5985ff42397a129ce90b5dd7a00ea0d4aaf0cd0c Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 16 Dec 2025 20:20:25 +0100 Subject: [PATCH 2/2] chore: fix invalid format argument Signed-off-by: squidfunk --- .github/workflows/commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 24e6b0f..0a6761c 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -48,7 +48,7 @@ jobs: run: | base="${{ github.event.pull_request.base.sha }}" head="${{ github.event.pull_request.head.sha }}" - git log "${base}..${head}" --format:"%h" > commits.txt + git log "${base}..${head}" --format=%h > commits.txt - name: Validate commit messages run: |