Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
ec51d271e3 | |||
656d08d74f
|
@@ -2,6 +2,12 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [unreleased]
|
||||
|
||||
### 🚜 Refactor
|
||||
|
||||
- *(help)* Improve help extraction for scripts - ([656d08d](https://git.0xmax42.io/actions/deb-changelog-action/commit/656d08d74f299d3c90aebfa67eac74f37662568f))
|
||||
|
||||
## [0.2.0](https://git.0xmax42.io/actions/deb-changelog-action/compare/v0.1.1..v0.2.0) - 2025-07-02
|
||||
|
||||
### 📚 Documentation
|
||||
|
11
bootstrap.sh
11
bootstrap.sh
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
#=== HELP START ===
|
||||
# run.sh – local wrapper for the “deb-changelog-action”
|
||||
#
|
||||
# Behaviour:
|
||||
@@ -32,6 +33,7 @@
|
||||
# (configs/cliff.debian.toml) is used.
|
||||
# • PACKAGE_NAME, AUTHOR_NAME, AUTHOR_EMAIL are exported so the TOML template
|
||||
# can reference them (e.g. {{ get_env(name="PACKAGE_NAME") }}).
|
||||
#=== HELP END ===
|
||||
set -euo pipefail
|
||||
|
||||
REPO_URL="https://git.0xmax42.io/actions/deb-changelog-action"
|
||||
@@ -46,7 +48,14 @@ OUTPUT_FILE="debian/changelog"
|
||||
CLIFF_CONFIG=""
|
||||
# ───────────────────────────────────────────────
|
||||
|
||||
show_help() { sed -n '2,34p' "$0"; }
|
||||
show_help() {
|
||||
sed -n '/^#=== HELP START ===/,/^#=== HELP END ===/ {
|
||||
/^#=== HELP START ===/d
|
||||
/^#=== HELP END ===/d
|
||||
s/^#//
|
||||
p
|
||||
}' "$0"
|
||||
}
|
||||
|
||||
# 1 ─ Parse CLI options ─────────────────────────
|
||||
while [[ $# -gt 0 ]]; do
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
#=== HELP START ===
|
||||
# generate-changelog.sh – generates a Debian-style changelog via git-cliff
|
||||
#
|
||||
# Usage:
|
||||
@@ -16,6 +17,7 @@
|
||||
# • Checks that the config file exists and is readable.
|
||||
# • Ensures the parent directory of the output file exists (unless --debug).
|
||||
# • Generates the changelog; removes a leading empty line.
|
||||
#=== HELP END ===
|
||||
set -euo pipefail
|
||||
|
||||
# ───────────────────────────────────────────────
|
||||
@@ -25,7 +27,14 @@ OUT_FILE=""
|
||||
DEBUG=false
|
||||
# ───────────────────────────────────────────────
|
||||
|
||||
show_help() { sed -n '2,18p' "$0"; }
|
||||
show_help() {
|
||||
sed -n '/^#=== HELP START ===/,/^#=== HELP END ===/ {
|
||||
/^#=== HELP START ===/d
|
||||
/^#=== HELP END ===/d
|
||||
s/^#//
|
||||
p
|
||||
}' "$0"
|
||||
}
|
||||
|
||||
# 1 Parse CLI options
|
||||
while [[ $# -gt 0 ]]; do
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
#=== HELP START ===
|
||||
# install-git-cliff.sh – Installs the git-cliff binary
|
||||
|
||||
# Usage:
|
||||
@@ -22,6 +23,7 @@
|
||||
# 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-*
|
||||
#=== HELP END ===
|
||||
set -euo pipefail
|
||||
|
||||
REPO="orhun/git-cliff"
|
||||
@@ -39,7 +41,14 @@ USER_VERSION_SPECIFIED=false
|
||||
# ───────────────────────────────────────────────
|
||||
|
||||
# 0 Help function
|
||||
show_help() { sed -n '2,24p' "$0"; }
|
||||
show_help() {
|
||||
sed -n '/^#=== HELP START ===/,/^#=== HELP END ===/ {
|
||||
/^#=== HELP START ===/d
|
||||
/^#=== HELP END ===/d
|
||||
s/^#//
|
||||
p
|
||||
}' "$0"
|
||||
}
|
||||
|
||||
# 1 Parse options (keeps old single-arg form)
|
||||
POSITIONAL=()
|
||||
|
Reference in New Issue
Block a user