diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 8f5cb2c..0a6761c 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 }}