From 4e2fc0bfd5728bf3082807e2508cdc2028d70058 Mon Sep 17 00:00:00 2001 From: Masgalor Date: Wed, 21 Aug 2024 11:33:16 +0000 Subject: [PATCH] Update action.yml --- .github/actions/repo-state/action.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/repo-state/action.yml b/.github/actions/repo-state/action.yml index 0fd695c6..597e6b36 100644 --- a/.github/actions/repo-state/action.yml +++ b/.github/actions/repo-state/action.yml @@ -1,14 +1,14 @@ name: 'Repository state' -description: 'Get the latest tag, latest process-note and commits since last tag.' +description: 'Get the latest tag, the latest process-note, the number of commits since the last tag and the version numbers from the last tag.' outputs: tag: - description: "Latest tagged version" + description: "Last tagged version" value: ${{ steps.tag.outputs.value }} note: - description: "Note on the latest commit" + description: "Note on the last tag" value: ${{ steps.note.outputs.value }} commits: - description: "Number of commits since last tag" + description: "Number of commits since the last tag" value: ${{ steps.commits.outputs.value }} version_major: description: "Major version number" @@ -26,11 +26,11 @@ runs: with: fetch-depth: 0 ref: 'master' - - name: "Get latest tag" + - name: Get the last release-tag id: tag shell: bash run: echo "value=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT - - name: "Get note on the latest commit" + - name: Get the note on the last release-tag id: note shell: bash run: | @@ -38,11 +38,11 @@ runs: echo 'value<> $GITHUB_OUTPUT (git notes show $(git describe --tags --abbrev=0) | cat || true) >> $GITHUB_OUTPUT echo 'EOF' >> $GITHUB_OUTPUT - - name: "Get commits since latest tag" + - name: Get the commits since the last tag id: commits shell: bash run: echo "value=$(git rev-list --count $(git describe --tags --abbrev=0)..HEAD)" >> $GITHUB_OUTPUT - - name: "Get version numbers" + - name: Get the version numbers id: version shell: bash run: |