From 4e3f3a57e86740a9f8037fcaf9eebfbe41624ed0 Mon Sep 17 00:00:00 2001 From: Mohammed Nisham Kolakkat Date: Fri, 10 Jun 2022 14:13:46 +0200 Subject: [PATCH] Add output usage for clearer documentation --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0508962..35cd059 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,15 @@ jobs: fetch-depth: 0 # fetch the whole repo history - name: Git Version - uses: codacy/git-version@2.5.4 + id: version + uses: codacy/git-version@2.7.1 + + - name: Use the version + run: | + echo ${{ steps.version.outputs.version }} + - name: Use the previous version + run: | + echo ${{ steps.version.outputs.previous-version }} ``` ### Mono-Repo