Skip to content

Commit

Permalink
feat: add the version tag as comment to the commit sha in workflow fi…
Browse files Browse the repository at this point in the history
…les (#21)

# Description

This makes it easier for us to identify the change in the version number
for easier review.

# Verification

Command executed on a test repository.
  • Loading branch information
kayman-mk authored May 17, 2024
1 parent 3816ff5 commit a901626
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update-workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ do

# add a reference to this repository which holds the workflow
commit_sha=$(git rev-parse HEAD)
tag=$(git describe --tags --exact-match 2>/dev/null || true)

file_to_include="uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/$base_name@$commit_sha"
file_to_include="uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/$base_name@$commit_sha # $tag"

# 128 = 132 - 4 spaces (indentation)
if [ ${#file_to_include} -gt 128 ]; then
Expand Down

0 comments on commit a901626

Please sign in to comment.