Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
93a3eb41fa | |||
72a343db93
|
|||
2ca581c65a | |||
fb60cee748
|
|||
169a1feb2e | |||
fd29805fa1
|
|||
b1644de411
|
|||
a59359545d | |||
f1b790d4e3
|
@@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [0.2.0](https://git.0xmax42.io/actions/deb-changelog-action/compare/v0.1.1..v0.2.0) - 2025-07-02
|
||||||
|
|
||||||
|
### 📚 Documentation
|
||||||
|
|
||||||
|
- *(readme)* Update script reference in usage example - ([fb60cee](https://git.0xmax42.io/actions/deb-changelog-action/commit/fb60cee7482173db64f5946d493ac16d5ea6e57d))
|
||||||
|
- *(run.sh)* Update script documentation and help output - ([fd29805](https://git.0xmax42.io/actions/deb-changelog-action/commit/fd29805fa1c15310f234857362cdfaa0124051e5))
|
||||||
|
- *(script)* Improve help message layout and readability - ([b1644de](https://git.0xmax42.io/actions/deb-changelog-action/commit/b1644de411d789cb337ac250913a8aad2d53b40d))
|
||||||
|
- *(run.sh)* Clarify version reference in comments - ([f1b790d](https://git.0xmax42.io/actions/deb-changelog-action/commit/f1b790d4e3ae7d5b2d2300405f6bfdb6898dc8d2))
|
||||||
|
|
||||||
## [0.1.1](https://git.0xmax42.io/actions/deb-changelog-action/compare/v0.1.0..v0.1.1) - 2025-06-27
|
## [0.1.1](https://git.0xmax42.io/actions/deb-changelog-action/compare/v0.1.0..v0.1.1) - 2025-06-27
|
||||||
|
|
||||||
### 🚀 Features
|
### 🚀 Features
|
||||||
|
@@ -9,7 +9,7 @@ This repository provides a one-liner to generate a Debian-style changelog using
|
|||||||
You can run the generator directly from the URL:
|
You can run the generator directly from the URL:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -s https://git.0xmax42.io/actions/deb-changelog-action/raw/branch/main/run.sh | bash -s -- \
|
curl -s https://git.0xmax42.io/actions/deb-changelog-action/raw/branch/main/bootstrap.sh | bash -s -- \
|
||||||
--tag v2.9.1 \
|
--tag v2.9.1 \
|
||||||
--package_name my-package \
|
--package_name my-package \
|
||||||
--author_name "John Doe" \
|
--author_name "John Doe" \
|
||||||
|
@@ -1,12 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# run.sh – local wrapper for the “deb-changelog-action”
|
# run.sh – local wrapper for the “deb-changelog-action”
|
||||||
#
|
#
|
||||||
# This script
|
# Behaviour:
|
||||||
# 1. clones https://git.0xmax42.io/actions/deb-changelog-action at the
|
# • Clones https://git.0xmax42.io/actions/deb-changelog-action at the requested version into a temporary directory.
|
||||||
# requested tag into a temporary directory,
|
# • Installs git-cliff via the action’s helper script.
|
||||||
# 2. installs git-cliff using the action’s helper script, and
|
# • Generates a Debian-style changelog **in the current working directory** via the action’s generator script.
|
||||||
# 3. generates a Debian-style changelog **in the current working directory**
|
|
||||||
# via the action’s generator script.
|
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# ./run.sh --version v0 \
|
# ./run.sh --version v0 \
|
||||||
@@ -17,6 +15,16 @@
|
|||||||
# [--output_file debian/changelog] \
|
# [--output_file debian/changelog] \
|
||||||
# [--cliff_config path/to/cliff.toml]
|
# [--cliff_config path/to/cliff.toml]
|
||||||
#
|
#
|
||||||
|
# Options:
|
||||||
|
# --version <ver> Action version to clone (required)
|
||||||
|
# --tag <tag> Git tag used as starting point (required)
|
||||||
|
# --package_name <name> Debian package name (required)
|
||||||
|
# --author_name <name> Changelog author name (required)
|
||||||
|
# --author_email <mail> Changelog author e-mail (required)
|
||||||
|
# --output_file <file> Changelog path (default: debian/changelog)
|
||||||
|
# --cliff_config <file> git-cliff config file (default: configs/cliff.debian.toml)
|
||||||
|
# -h, --help Show this help message
|
||||||
|
#
|
||||||
# Notes:
|
# Notes:
|
||||||
# • Paths given for --output_file are interpreted relative to the directory
|
# • Paths given for --output_file are interpreted relative to the directory
|
||||||
# where you run this script.
|
# where you run this script.
|
||||||
@@ -38,7 +46,7 @@ OUTPUT_FILE="debian/changelog"
|
|||||||
CLIFF_CONFIG=""
|
CLIFF_CONFIG=""
|
||||||
# ───────────────────────────────────────────────
|
# ───────────────────────────────────────────────
|
||||||
|
|
||||||
show_help() { sed -n '2,25p' "$0"; }
|
show_help() { sed -n '2,34p' "$0"; }
|
||||||
|
|
||||||
# 1 ─ Parse CLI options ─────────────────────────
|
# 1 ─ Parse CLI options ─────────────────────────
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
@@ -1,17 +1,27 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# install-git-cliff.sh – fetches the latest or specified git-cliff binary
|
# install-git-cliff.sh – Installs the git-cliff binary
|
||||||
# Usage (back-compatible):
|
|
||||||
# sudo ./install-git-cliff.sh # latest version, default arch/dir
|
# Usage:
|
||||||
# sudo ./install-git-cliff.sh 2.9.1 # specific version
|
# sudo ./install-git-cliff.sh [options] [<version>]
|
||||||
# Extended options:
|
|
||||||
# sudo ./install-git-cliff.sh -a x86_64-linux-musl [<ver>] # custom arch
|
# Options:
|
||||||
# sudo ./install-git-cliff.sh -d /opt/tools [<ver>] # custom install dir
|
# -a, --arch <triplet> Target architecture (default: ${DEFAULT_ARCH_DISPLAY})
|
||||||
# sudo ./install-git-cliff.sh -n [<ver>] # dry-run (no install)
|
# -d, --dir <path> Installation directory (default: ${INSTALL_DIR_DEFAULT})
|
||||||
# sudo ./install-git-cliff.sh -h | --help # help
|
# -n, --dry-run Download and verify, but do NOT install
|
||||||
#
|
# -h, --help Show this help message
|
||||||
|
|
||||||
|
# Arguments:
|
||||||
|
# <version> git-cliff version to install (default: latest)
|
||||||
|
|
||||||
# Behaviour:
|
# Behaviour:
|
||||||
# • If git-cliff is already in \$PATH and **no version** was requested, the script exits early.
|
# • If git-cliff is already in PATH and no version was requested the script exits.
|
||||||
# • If a specific version was requested, the installed version is compared; identical → exit, different → upgrade.
|
# • If a specific version was requested, the installed version is compared and
|
||||||
|
# only upgraded if it differs.
|
||||||
|
|
||||||
|
# Supported architecture triplets (examples):
|
||||||
|
# aarch64-linux-gnu / musl / apple-darwin / pc-windows-msvc
|
||||||
|
# i686-linux-gnu / musl / pc-windows-msvc
|
||||||
|
# x86_64-linux-gnu / musl / apple-darwin / pc-windows-*
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
REPO="orhun/git-cliff"
|
REPO="orhun/git-cliff"
|
||||||
@@ -29,33 +39,7 @@ USER_VERSION_SPECIFIED=false
|
|||||||
# ───────────────────────────────────────────────
|
# ───────────────────────────────────────────────
|
||||||
|
|
||||||
# 0 Help function
|
# 0 Help function
|
||||||
show_help() {
|
show_help() { sed -n '2,24p' "$0"; }
|
||||||
cat <<EOF
|
|
||||||
install-git-cliff.sh – Installs the git-cliff binary
|
|
||||||
|
|
||||||
Usage:
|
|
||||||
sudo ./install-git-cliff.sh [options] [<version>]
|
|
||||||
|
|
||||||
Options:
|
|
||||||
-a, --arch <triplet> Target architecture (default: ${DEFAULT_ARCH_DISPLAY})
|
|
||||||
-d, --dir <path> Installation directory (default: ${INSTALL_DIR_DEFAULT})
|
|
||||||
-n, --dry-run Download and verify, but do NOT install
|
|
||||||
-h, --help Show this help message
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
<version> git-cliff version to install (default: latest)
|
|
||||||
|
|
||||||
Behaviour:
|
|
||||||
• If git-cliff is already in PATH and no version was requested the script exits.
|
|
||||||
• If a specific version was requested, the installed version is compared and
|
|
||||||
only upgraded if it differs.
|
|
||||||
|
|
||||||
Supported architecture triplets (examples):
|
|
||||||
aarch64-linux-gnu / musl / apple-darwin / pc-windows-msvc
|
|
||||||
i686-linux-gnu / musl / pc-windows-msvc
|
|
||||||
x86_64-linux-gnu / musl / apple-darwin / pc-windows-*
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
# 1 Parse options (keeps old single-arg form)
|
# 1 Parse options (keeps old single-arg form)
|
||||||
POSITIONAL=()
|
POSITIONAL=()
|
||||||
|
Reference in New Issue
Block a user