Skip to content

Commit

Permalink
docs: better example
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Stepin committed May 30, 2024
1 parent 5b1d52b commit 75a2342
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ Example usage for Gitlab:
create_changelog:
stage: "build"
image:
name: "stepin/git-parse-commits:latest"
name: "stepin/git-parse-commits:1.0.0"
entrypoint: [""]
variables:
GIT_DEPTH: "0"
script:
- git-parse-commits version
- CURRENT_VERSION="$(git-parse-commits currentVersion)"
- RELEASE_VERSION="$(git-parse-commits --tag-prefix 'v' releaseVersion)"
- echo "RELEASE_VERSION=$RELEASE_VERSION\nCURRENT_VERSION=$CURRENT_VERSION" > relNotes.env
- git-parse-commits --tag-prefix 'v' releaseNotes > releaseNotes.md
- RELEASE_VERSION="$(git-parse-commits releaseVersion)"
- echo "RELEASE_VERSION=$RELEASE_VERSION" >> relNotes.env
- echo "CURRENT_VERSION=$CURRENT_VERSION" >> relNotes.env
- cat relNotes.env
- git-parse-commits releaseNotes > releaseNotes.md
artifacts:
reports:
dotenv: relNotes.env
Expand Down

0 comments on commit 75a2342

Please sign in to comment.