Compare commits
7
Commits
v0.1.0
...
68d8884ddd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68d8884ddd
|
||
|
|
9b964d0089 | ||
|
|
57d5864e69
|
||
|
|
7eb7e2a458 | ||
|
|
62f719e55e
|
||
|
|
09c7f8b592
|
||
|
|
3c595aa81d
|
@@ -14,10 +14,10 @@ Without explicit inputs the action determines the two most recent non-RC tags fr
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: volker.raschek/ah-annotations@v1
|
- uses: volker.raschek/ah-annotations@v0.0.1
|
||||||
```
|
```
|
||||||
|
|
||||||
### Explicit tags
|
### Explicit tags
|
||||||
@@ -26,10 +26,10 @@ Pass `old-tag` and `new-tag` to control the commit range:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: volker.raschek/ah-annotations@v1.0.0
|
- uses: volker.raschek/ah-annotations@v0.0.1
|
||||||
with:
|
with:
|
||||||
old-tag: v1.0.0
|
old-tag: v1.0.0
|
||||||
new-tag: v2.0.0
|
new-tag: v2.0.0
|
||||||
|
|||||||
+5
-5
@@ -14,7 +14,7 @@ YQ_VERSION="${YQ_VERSION:="${internal_yq_version}"}"
|
|||||||
case "${YQ_OS:-}" in
|
case "${YQ_OS:-}" in
|
||||||
linux*) ;;
|
linux*) ;;
|
||||||
darwin*) ;;
|
darwin*) ;;
|
||||||
*) echo "Unsupported OS: $(uname -s)"; exit 1;;
|
*) echo "ERROR: Unsupported OS: $(uname -s)"; exit 1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ esac
|
|||||||
case "${YQ_ARCH:-}" in
|
case "${YQ_ARCH:-}" in
|
||||||
amd64* | x86_64*) YQ_ARCH="amd64" ;;
|
amd64* | x86_64*) YQ_ARCH="amd64" ;;
|
||||||
aarch64 | arm64*) YQ_ARCH="arm64" ;;
|
aarch64 | arm64*) YQ_ARCH="arm64" ;;
|
||||||
*) echo "Unsupported architecture: $(uname -m)"; exit 1;;
|
*) echo "ERROR: Unsupported architecture: $(uname -m)"; exit 1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Build download URL if not explicitly provided
|
# Build download URL if not explicitly provided
|
||||||
@@ -41,7 +41,7 @@ fi
|
|||||||
|
|
||||||
# Download and extract yq binary from .tar.gz
|
# Download and extract yq binary from .tar.gz
|
||||||
if [[ "${YQ_DOWNLOAD_URL}" =~ \.tar\.gz$ ]]; then
|
if [[ "${YQ_DOWNLOAD_URL}" =~ \.tar\.gz$ ]]; then
|
||||||
echo "Downloading and extracting yq from ${YQ_DOWNLOAD_URL}..."
|
echo "INFO: Downloading and extracting yq from ${YQ_DOWNLOAD_URL}..."
|
||||||
tmp_dir="$(mktemp -d)"
|
tmp_dir="$(mktemp -d)"
|
||||||
trap 'rm -rf "${tmp_dir}"' EXIT
|
trap 'rm -rf "${tmp_dir}"' EXIT
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ if [[ "${YQ_DOWNLOAD_URL}" =~ \.tar\.gz$ ]]; then
|
|||||||
|
|
||||||
# Download yq binary directly
|
# Download yq binary directly
|
||||||
else
|
else
|
||||||
echo "Downloading yq from ${YQ_DOWNLOAD_URL}..."
|
echo "INFO: Downloading yq from ${YQ_DOWNLOAD_URL}..."
|
||||||
|
|
||||||
curl \
|
curl \
|
||||||
--fail \
|
--fail \
|
||||||
@@ -74,7 +74,7 @@ fi
|
|||||||
chmod +x "${bin_path}"
|
chmod +x "${bin_path}"
|
||||||
|
|
||||||
yq_installed_version="$("${bin_path}" --version)"
|
yq_installed_version="$("${bin_path}" --version)"
|
||||||
echo "Installed ${yq_installed_version} in ${bin_path}"
|
echo "INFO: Installed ${yq_installed_version} in ${bin_path}"
|
||||||
|
|
||||||
# Ensure yq is in PATH for subsequent steps
|
# Ensure yq is in PATH for subsequent steps
|
||||||
if [[ -n "${GITHUB_PATH:-}" ]]; then
|
if [[ -n "${GITHUB_PATH:-}" ]]; then
|
||||||
|
|||||||
+2
-1
@@ -13,7 +13,7 @@
|
|||||||
"^README\\.md$"
|
"^README\\.md$"
|
||||||
],
|
],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"uses: volker\\.raschek/ah-annotations@(?<currentValue>[^\\s\"']+)"
|
"uses: volker\\.raschek\/ah-annotations@(?<currentValue>[^\\s\"']+)"
|
||||||
],
|
],
|
||||||
"depNameTemplate": "volker.raschek/ah-annotations",
|
"depNameTemplate": "volker.raschek/ah-annotations",
|
||||||
"packageNameTemplate": "https://git.cryptic.systems/volker.raschek/ah-annotations",
|
"packageNameTemplate": "https://git.cryptic.systems/volker.raschek/ah-annotations",
|
||||||
@@ -41,6 +41,7 @@
|
|||||||
],
|
],
|
||||||
"automerge": true,
|
"automerge": true,
|
||||||
"matchDepNames": [
|
"matchDepNames": [
|
||||||
|
"actions/checkout",
|
||||||
"volker.raschek/ah-annotations"
|
"volker.raschek/ah-annotations"
|
||||||
],
|
],
|
||||||
"matchUpdateTypes": [
|
"matchUpdateTypes": [
|
||||||
|
|||||||
Reference in New Issue
Block a user