mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-23 06:00:47 -05:00
Replace the semantic-release Release Cut button with release-please.yml: a standing release PR bumps pom.xml and CHANGELOG.md; merging it tags X.Y.Z, then the workflow publishes the binaries (release.yml, now a reusable workflow), bumps the Homebrew tap and runs CodeQL and Trivy. A workflow_dispatch tag input re-publishes an existing tag. Swap conventional-commits.yml for commit-lint.yml so the PR title is linted, exempt release PRs from the changelog guard, and demote the generated changelog headings so release-please inserts above them. Tests: mvn -B test, 811 passed. Signed-off-by: Hector Ventura <hectorvent@gmail.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Commit lint
|
|
|
|
# Its own workflow, with no path filters, so every pull request is checked: its commits and its
|
|
# title, which becomes the commit message when the pull request is squash-merged and so decides
|
|
# what release-please does with it.
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
commit-lint:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Check the commits
|
|
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
|
|
|
|
- name: Check the pull request title
|
|
env:
|
|
TITLE: ${{ github.event.pull_request.title }}
|
|
run: |
|
|
dir="$RUNNER_TEMP/commitlint"
|
|
mkdir -p "$dir" && cp commitlint.config.mjs "$dir/" && cd "$dir"
|
|
npm install --no-save --no-package-lock --no-audit --no-fund \
|
|
@commitlint/cli@19.8.1 @commitlint/config-conventional@19.8.1 >/dev/null
|
|
printf '%s\n' "$TITLE" | npx --no-install commitlint
|