From a2dd539a83f17aa6835463fd3c43f95c5604108b Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 8 Jul 2024 18:06:03 +0200 Subject: [PATCH 01/11] feat: add version input variable Signed-off-by: Ludovic Ortega --- Dockerfile | 18 --------- README.md | 1 + action.yml | 100 +++++++++++++++++++++++++++++++++++++++++++++++--- entrypoint.sh | 44 ---------------------- 4 files changed, 96 insertions(+), 67 deletions(-) delete mode 100644 Dockerfile delete mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 6cdb728..0000000 --- a/Dockerfile +++ /dev/null @@ -1,18 +0,0 @@ -FROM orhunp/git-cliff:2.4.0@sha256:f15810fd4dcbe984093dac804d177f2e1d259428611d28e9d187cb7fd1655b1d - -LABEL maintainer="orhun " -LABEL repository="https://github.com/orhun/git-cliff-action" -LABEL homepage="https://github.com/orhun/git-cliff" - -LABEL com.github.actions.name="Changelog Generator" -LABEL com.github.actions.description="Generate changelog based on your Git history" -LABEL com.github.actions.icon="triangle" -LABEL com.github.actions.color="green" - -COPY README.md / -COPY LICENSE / -COPY entrypoint.sh /entrypoint.sh - -RUN apt-get update && apt-get install -y jq && rm -rf /var/lib/apt/lists/* - -ENTRYPOINT ["/entrypoint.sh"] diff --git a/README.md b/README.md index e2ab31d..44b82bb 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ This action generates a changelog based on your Git history using [git-cliff](ht ### Input variables +- `version`: Git-cliff version to use (Defaultt: `"latest"`) - `config`: Path of the configuration file. (Default: `"cliff.toml"`) - `args`: [Arguments](https://github.com/orhun/git-cliff#usage) to pass to git-cliff. (Default: `"-v"`) diff --git a/action.yml b/action.yml index d5042b1..911d479 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,10 @@ name: "git-cliff - Changelog Generator" description: "Generate changelog based on your Git history" inputs: + version: + description: "git-cliff version" + required: false + default: "latest" config: description: "config file location" required: false @@ -17,11 +21,97 @@ outputs: version: description: "version of the latest release" runs: - using: "docker" - image: "Dockerfile" - args: - - --config=${{ inputs.config }} - - ${{ inputs.args }} + using: "composite" + steps: + - name: Download git-cliff + shell: bash + run: | + set -u + + case "${{ runner.os }}" in + macOS) OS=apple-darwin ;; + Windows) OS=pc-windows-msvc ;; + *) OS=unknown-linux-gnu ;; + esac + case "${{ runner.arch }}" in + ARM64) ARCH=aarch64 ;; + ARM) ARCH=pc-windows-msvc ;; + X86) ARCH=i686 ;; + *) ARCH=x86_64 ;; + esac + + RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/latest' + if [[ "${{ inputs.version }}" != "latest" ]]; then + RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/tags/${{ inputs.version }}' + fi + + # Although releases endpoint is available without authentication, the current github.token is still passed + # in order to increase the limit of 60 requests per hour per IP address to a higher value that's also counted + # per GitHub account. + # Caching is disabled in order not to receive stale responses from Varnish cache fronting GitHub API. + RELEASE_INFO="$(curl --silent --show-error --fail \ + --header 'authorization: Bearer ${{ github.token }}' \ + --header 'Cache-Control: no-cache, must-revalidate' \ + "${RELEASE_URL}")" + TAG_NAME="$(echo "${RELEASE_INFO}" | jq --raw-output ".tag_name")" + TARGET="git-cliff-${TAG_NAME:1}-${ARCH}-${OS}.tar.gz" + LOCATION="$(echo "${RELEASE_INFO}" \ + | jq --raw-output ".assets[].browser_download_url" \ + | grep "${TARGET}$")" + + # Skip downloading release if downloaded already, e.g. when the action is used multiple times. + if [[ ! -e "$TARGET" ]]; then + curl --silent --show-error --fail --location --output "$TARGET" "$LOCATION" + tar -xf "$TARGET" + mv git-cliff-${TAG_NAME:1}/git-cliff . + fi + - name: Run git-cliff + shell: bash + run: | + #!/bin/bash -l + set -uxo pipefail + + # Avoid file expansion when passing parameters like with '*' + set -o noglob + + # Set up working directory + owner=$(stat -c "%u:%g" .) + chown -R "$(id -u)" . + + # Create the output directory + OUTPUT=${OUTPUT:="git-cliff/CHANGELOG.md"} + mkdir -p "$(dirname $OUTPUT)" + + # Separate arguments before passing them to git-cliff command + args=$(echo "$@" | xargs) + + # Execute git-cliff + GIT_CLIFF_OUTPUT="$OUTPUT" ./git-cliff $args + exit_code=$? + + # Retrieve context + CONTEXT="$(mktemp)" + GIT_CLIFF_OUTPUT="$CONTEXT" ./git-cliff $args --context + + # Output to console + cat "$OUTPUT" + + # Revert permissions + chown -R "$owner" . + + # Set the changelog content + echo "content<>$GITHUB_OUTPUT + cat "$OUTPUT" >>$GITHUB_OUTPUT + echo "EOF" >>$GITHUB_OUTPUT + + # Set output file + echo "changelog=$OUTPUT" >>$GITHUB_OUTPUT + + # Set the version output to the version of the latest release + echo "version=$(jq -r '.[0].version' $CONTEXT)" >>$GITHUB_OUTPUT + + # Pass exit code to the next step + echo "exit_code=$exit_code" >>$GITHUB_OUTPUT branding: icon: "triangle" color: "green" diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index 2d60754..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -l -set -uxo pipefail - -# Avoid file expansion when passing parameters like with '*' -set -o noglob - -# Set up working directory -owner=$(stat -c "%u:%g" .) -chown -R "$(id -u)" . - -# Create the output directory -OUTPUT=${OUTPUT:="git-cliff/CHANGELOG.md"} -mkdir -p "$(dirname $OUTPUT)" - -# Separate arguments before passing them to git-cliff command -args=$(echo "$@" | xargs) - -# Execute git-cliff -GIT_CLIFF_OUTPUT="$OUTPUT" git-cliff $args -exit_code=$? - -# Retrieve context -CONTEXT="$(mktemp)" -GIT_CLIFF_OUTPUT="$CONTEXT" git-cliff $args --context - -# Output to console -cat "$OUTPUT" - -# Revert permissions -chown -R "$owner" . - -# Set the changelog content -echo "content<>$GITHUB_OUTPUT -cat "$OUTPUT" >>$GITHUB_OUTPUT -echo "EOF" >>$GITHUB_OUTPUT - -# Set output file -echo "changelog=$OUTPUT" >>$GITHUB_OUTPUT - -# Set the version output to the version of the latest release -echo "version=$(jq -r '.[0].version' $CONTEXT)" >>$GITHUB_OUTPUT - -# Pass exit code to the next step -echo "exit_code=$exit_code" >>$GITHUB_OUTPUT From d8350c15f2a2263e0506feec8658ee7909c6fe2a Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 8 Jul 2024 18:25:08 +0200 Subject: [PATCH 02/11] chore(docs): readme typo Signed-off-by: Ludovic Ortega --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 44b82bb..2626632 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This action generates a changelog based on your Git history using [git-cliff](ht ### Input variables -- `version`: Git-cliff version to use (Defaultt: `"latest"`) +- `version`: Git-cliff version to use (Default: `"latest"`) - `config`: Path of the configuration file. (Default: `"cliff.toml"`) - `args`: [Arguments](https://github.com/orhun/git-cliff#usage) to pass to git-cliff. (Default: `"-v"`) From 94f832ca549bd83f7435975dcf7d45c362ed5288 Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 29 Jul 2024 21:10:59 +0200 Subject: [PATCH 03/11] fix: use bash script file instead of raw script --- .github/dependabot.yml | 13 ------- action.yml | 85 +----------------------------------------- install.sh | 41 ++++++++++++++++++++ run.sh | 45 ++++++++++++++++++++++ 4 files changed, 88 insertions(+), 96 deletions(-) create mode 100755 install.sh create mode 100755 run.sh diff --git a/.github/dependabot.yml b/.github/dependabot.yml index abe3a3b..b1ba7ff 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,16 +13,3 @@ updates: patch: update-types: - "patch" - # Maintain dependencies for docker - - package-ecosystem: docker - directory: "/" - schedule: - interval: daily - open-pull-requests-limit: 10 - groups: - minor: - update-types: - - "minor" - patch: - update-types: - - "patch" \ No newline at end of file diff --git a/action.yml b/action.yml index 911d479..c3301e7 100644 --- a/action.yml +++ b/action.yml @@ -25,93 +25,12 @@ runs: steps: - name: Download git-cliff shell: bash - run: | - set -u + run: ${{ github.action_path }}/install.sh - case "${{ runner.os }}" in - macOS) OS=apple-darwin ;; - Windows) OS=pc-windows-msvc ;; - *) OS=unknown-linux-gnu ;; - esac - case "${{ runner.arch }}" in - ARM64) ARCH=aarch64 ;; - ARM) ARCH=pc-windows-msvc ;; - X86) ARCH=i686 ;; - *) ARCH=x86_64 ;; - esac - - RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/latest' - if [[ "${{ inputs.version }}" != "latest" ]]; then - RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/tags/${{ inputs.version }}' - fi - - # Although releases endpoint is available without authentication, the current github.token is still passed - # in order to increase the limit of 60 requests per hour per IP address to a higher value that's also counted - # per GitHub account. - # Caching is disabled in order not to receive stale responses from Varnish cache fronting GitHub API. - RELEASE_INFO="$(curl --silent --show-error --fail \ - --header 'authorization: Bearer ${{ github.token }}' \ - --header 'Cache-Control: no-cache, must-revalidate' \ - "${RELEASE_URL}")" - TAG_NAME="$(echo "${RELEASE_INFO}" | jq --raw-output ".tag_name")" - TARGET="git-cliff-${TAG_NAME:1}-${ARCH}-${OS}.tar.gz" - LOCATION="$(echo "${RELEASE_INFO}" \ - | jq --raw-output ".assets[].browser_download_url" \ - | grep "${TARGET}$")" - - # Skip downloading release if downloaded already, e.g. when the action is used multiple times. - if [[ ! -e "$TARGET" ]]; then - curl --silent --show-error --fail --location --output "$TARGET" "$LOCATION" - tar -xf "$TARGET" - mv git-cliff-${TAG_NAME:1}/git-cliff . - fi - name: Run git-cliff shell: bash - run: | - #!/bin/bash -l - set -uxo pipefail + run: ${{ github.action_path }}/run.sh - # Avoid file expansion when passing parameters like with '*' - set -o noglob - - # Set up working directory - owner=$(stat -c "%u:%g" .) - chown -R "$(id -u)" . - - # Create the output directory - OUTPUT=${OUTPUT:="git-cliff/CHANGELOG.md"} - mkdir -p "$(dirname $OUTPUT)" - - # Separate arguments before passing them to git-cliff command - args=$(echo "$@" | xargs) - - # Execute git-cliff - GIT_CLIFF_OUTPUT="$OUTPUT" ./git-cliff $args - exit_code=$? - - # Retrieve context - CONTEXT="$(mktemp)" - GIT_CLIFF_OUTPUT="$CONTEXT" ./git-cliff $args --context - - # Output to console - cat "$OUTPUT" - - # Revert permissions - chown -R "$owner" . - - # Set the changelog content - echo "content<>$GITHUB_OUTPUT - cat "$OUTPUT" >>$GITHUB_OUTPUT - echo "EOF" >>$GITHUB_OUTPUT - - # Set output file - echo "changelog=$OUTPUT" >>$GITHUB_OUTPUT - - # Set the version output to the version of the latest release - echo "version=$(jq -r '.[0].version' $CONTEXT)" >>$GITHUB_OUTPUT - - # Pass exit code to the next step - echo "exit_code=$exit_code" >>$GITHUB_OUTPUT branding: icon: "triangle" color: "green" diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..7f953aa --- /dev/null +++ b/install.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +set -uxo pipefail + +case "${{ runner.os }}" in + macOS) OS=apple-darwin ;; + Windows) OS=pc-windows-msvc ;; + *) OS=unknown-linux-gnu ;; +esac +case "${{ runner.arch }}" in + ARM64) ARCH=aarch64 ;; + ARM) ARCH=pc-windows-msvc ;; + X86) ARCH=i686 ;; + *) ARCH=x86_64 ;; +esac + +RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/latest' +if [[ "${{ inputs.version }}" != "latest" ]]; then + RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/tags/${{ inputs.version }}' +fi + +# Although releases endpoint is available without authentication, the current github.token is still passed +# in order to increase the limit of 60 requests per hour per IP address to a higher value that's also counted +# per GitHub account. +# Caching is disabled in order not to receive stale responses from Varnish cache fronting GitHub API. +RELEASE_INFO="$(curl --silent --show-error --fail \ + --header 'authorization: Bearer ${{ github.token }}' \ + --header 'Cache-Control: no-cache, must-revalidate' \ + "${RELEASE_URL}")" +TAG_NAME="$(echo "${RELEASE_INFO}" | jq --raw-output ".tag_name")" +TARGET="git-cliff-${TAG_NAME:1}-${ARCH}-${OS}.tar.gz" +LOCATION="$(echo "${RELEASE_INFO}" \ + | jq --raw-output ".assets[].browser_download_url" \ + | grep "${TARGET}$")" + +# Skip downloading release if downloaded already, e.g. when the action is used multiple times. +if [[ ! -e "$TARGET" ]]; then + curl --silent --show-error --fail --location --output "$TARGET" "$LOCATION" + tar -xf "$TARGET" + mv git-cliff-${TAG_NAME:1}/git-cliff . +fi \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..5b81187 --- /dev/null +++ b/run.sh @@ -0,0 +1,45 @@ +#!/bin/bash -l + +set -uxo pipefail + +# Avoid file expansion when passing parameters like with '*' +set -o noglob + +# Set up working directory +owner=$(stat -c "%u:%g" .) +chown -R "$(id -u)" . + +# Create the output directory +OUTPUT=${OUTPUT:="git-cliff/CHANGELOG.md"} +mkdir -p "$(dirname $OUTPUT)" + +# Separate arguments before passing them to git-cliff command +args=$(echo "$@" | xargs) + +# Execute git-cliff +GIT_CLIFF_OUTPUT="$OUTPUT" ./git-cliff $args +exit_code=$? + +# Retrieve context +CONTEXT="$(mktemp)" +GIT_CLIFF_OUTPUT="$CONTEXT" ./git-cliff $args --context + +# Output to console +cat "$OUTPUT" + +# Revert permissions +chown -R "$owner" . + +# Set the changelog content +echo "content<>$GITHUB_OUTPUT +cat "$OUTPUT" >>$GITHUB_OUTPUT +echo "EOF" >>$GITHUB_OUTPUT + +# Set output file +echo "changelog=$OUTPUT" >>$GITHUB_OUTPUT + +# Set the version output to the version of the latest release +echo "version=$(jq -r '.[0].version' $CONTEXT)" >>$GITHUB_OUTPUT + +# Pass exit code to the next step +echo "exit_code=$exit_code" >>$GITHUB_OUTPUT \ No newline at end of file From 0ea4d24cac91fca1d2d21f2b534dec31280003fc Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 29 Jul 2024 21:31:18 +0200 Subject: [PATCH 04/11] fix: variable interpolation --- action.yml | 11 ++++++++++- install.sh | 10 +++++----- run.sh | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index c3301e7..0b42671 100644 --- a/action.yml +++ b/action.yml @@ -16,20 +16,29 @@ inputs: outputs: changelog: description: "output file" + value: ${{ steps.run-git-cliff.outputs.changelog }} content: description: "content of the changelog" + value: ${{ steps.run-git-cliff.outputs.content }} version: description: "version of the latest release" + value: ${{ steps.run-git-cliff.outputs.version }} runs: using: "composite" steps: - name: Download git-cliff shell: bash run: ${{ github.action_path }}/install.sh + env: + RUNNER_OS: ${{ runner.os }} + RUNNER_ARCH: ${{ runner.arch }} + VERSION: ${{ inputs.version }} + GITHUB_TOKEN: ${{ github.token }} - name: Run git-cliff + id: run-git-cliff shell: bash - run: ${{ github.action_path }}/run.sh + run: ${{ github.action_path }}/run.sh --config=${{ inputs.config }} ${{ inputs.args }} branding: icon: "triangle" diff --git a/install.sh b/install.sh index 7f953aa..4034ac9 100755 --- a/install.sh +++ b/install.sh @@ -2,12 +2,12 @@ set -uxo pipefail -case "${{ runner.os }}" in +case "${RUNNER_OS}" in macOS) OS=apple-darwin ;; Windows) OS=pc-windows-msvc ;; *) OS=unknown-linux-gnu ;; esac -case "${{ runner.arch }}" in +case "${RUNNER_ARCH}" in ARM64) ARCH=aarch64 ;; ARM) ARCH=pc-windows-msvc ;; X86) ARCH=i686 ;; @@ -15,8 +15,8 @@ case "${{ runner.arch }}" in esac RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/latest' -if [[ "${{ inputs.version }}" != "latest" ]]; then - RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/tags/${{ inputs.version }}' +if [[ "${VERSION}" != "latest" ]]; then + RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/tags/${VERSION}' fi # Although releases endpoint is available without authentication, the current github.token is still passed @@ -24,7 +24,7 @@ fi # per GitHub account. # Caching is disabled in order not to receive stale responses from Varnish cache fronting GitHub API. RELEASE_INFO="$(curl --silent --show-error --fail \ - --header 'authorization: Bearer ${{ github.token }}' \ + --header 'authorization: Bearer ${GITHUB_TOKEN}' \ --header 'Cache-Control: no-cache, must-revalidate' \ "${RELEASE_URL}")" TAG_NAME="$(echo "${RELEASE_INFO}" | jq --raw-output ".tag_name")" diff --git a/run.sh b/run.sh index 5b81187..3c699e2 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash -l +#!/bin/bash set -uxo pipefail From ada3ead0cd6ce154dd820386ffba51a19d11cc92 Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 29 Jul 2024 22:01:52 +0200 Subject: [PATCH 05/11] fix: GITHUB_TOKEN bash variable interpolation --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 4034ac9..323582b 100755 --- a/install.sh +++ b/install.sh @@ -15,7 +15,7 @@ case "${RUNNER_ARCH}" in esac RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/latest' -if [[ "${VERSION}" != "latest" ]]; then +if [[ "${VERSION}" != 'latest' ]]; then RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/tags/${VERSION}' fi @@ -24,7 +24,7 @@ fi # per GitHub account. # Caching is disabled in order not to receive stale responses from Varnish cache fronting GitHub API. RELEASE_INFO="$(curl --silent --show-error --fail \ - --header 'authorization: Bearer ${GITHUB_TOKEN}' \ + --header "authorization: Bearer ${GITHUB_TOKEN}" \ --header 'Cache-Control: no-cache, must-revalidate' \ "${RELEASE_URL}")" TAG_NAME="$(echo "${RELEASE_INFO}" | jq --raw-output ".tag_name")" From 0e583f76b59d23a5a829ce1e4921f82ad0412bc2 Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 29 Jul 2024 22:24:52 +0200 Subject: [PATCH 06/11] fix: output version description --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0b42671..a22209c 100644 --- a/action.yml +++ b/action.yml @@ -21,7 +21,7 @@ outputs: description: "content of the changelog" value: ${{ steps.run-git-cliff.outputs.content }} version: - description: "version of the latest release" + description: "version of the release" value: ${{ steps.run-git-cliff.outputs.version }} runs: using: "composite" From 8c10da15910f5902521f3fe14cae85b4684d4d0f Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 29 Jul 2024 22:26:48 +0200 Subject: [PATCH 07/11] fix: VERSION variable interpolation --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 323582b..94b4a29 100755 --- a/install.sh +++ b/install.sh @@ -16,7 +16,7 @@ esac RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/latest' if [[ "${VERSION}" != 'latest' ]]; then - RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/tags/${VERSION}' + RELEASE_URL="https://api.github.com/repos/orhun/git-cliff/releases/tags/${VERSION}" fi # Although releases endpoint is available without authentication, the current github.token is still passed From 4b0012fd497a88552fe68c87da744fe601de6cad Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 29 Jul 2024 22:30:52 +0200 Subject: [PATCH 08/11] fix: add back "lastest" in version description --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a22209c..0b42671 100644 --- a/action.yml +++ b/action.yml @@ -21,7 +21,7 @@ outputs: description: "content of the changelog" value: ${{ steps.run-git-cliff.outputs.content }} version: - description: "version of the release" + description: "version of the latest release" value: ${{ steps.run-git-cliff.outputs.version }} runs: using: "composite" From 406de978ea12a2e78f2f6d1addee6e2dd4a71a4f Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Wed, 31 Jul 2024 08:15:50 +0200 Subject: [PATCH 09/11] fix: add suggested changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Orhun Parmaksız --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2626632..673fb78 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This action generates a changelog based on your Git history using [git-cliff](ht ### Input variables -- `version`: Git-cliff version to use (Default: `"latest"`) +- `version`: `git-cliff` version to use (Default: `"latest"`) - `config`: Path of the configuration file. (Default: `"cliff.toml"`) - `args`: [Arguments](https://github.com/orhun/git-cliff#usage) to pass to git-cliff. (Default: `"-v"`) From 047aa8d758679e759cb1679de06b84f0e0400d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 26 Aug 2024 22:06:40 +0300 Subject: [PATCH 10/11] refactor: polish implementation --- README.md | 1 + install.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 673fb78..2dfc0a6 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ jobs: uses: orhun/git-cliff-action@v3 id: git-cliff with: + version: latest config: cliff.toml args: --verbose env: diff --git a/install.sh b/install.sh index 94b4a29..fd9fe87 100755 --- a/install.sh +++ b/install.sh @@ -38,4 +38,4 @@ if [[ ! -e "$TARGET" ]]; then curl --silent --show-error --fail --location --output "$TARGET" "$LOCATION" tar -xf "$TARGET" mv git-cliff-${TAG_NAME:1}/git-cliff . -fi \ No newline at end of file +fi From f71e39ec6b3c83646f352db2c65aee561275f55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 26 Aug 2024 22:07:49 +0300 Subject: [PATCH 11/11] chore: bump version --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2dfc0a6..11985b6 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ jobs: fetch-depth: 0 - name: Generate a changelog - uses: orhun/git-cliff-action@v3 + uses: orhun/git-cliff-action@v4 id: git-cliff with: version: latest @@ -83,7 +83,7 @@ jobs: fetch-depth: 0 - name: Generate a changelog - uses: orhun/git-cliff-action@v3 + uses: orhun/git-cliff-action@v4 id: git-cliff with: config: cliff.toml @@ -132,7 +132,7 @@ jobs: fetch-depth: 0 - name: Generate a changelog - uses: orhun/git-cliff-action@v3 + uses: orhun/git-cliff-action@v4 with: config: cliff.toml args: --verbose