Skip to content

Commit

Permalink
Merge pull request #1 from mwittgen/tickets/DM-48232
Browse files Browse the repository at this point in the history
Fix check upload workflow
  • Loading branch information
mwittgen authored Dec 19, 2024
2 parents 9420c9d + 07b8379 commit 8968ce2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,14 @@ jobs:
weekly_sha=$(git tag -l 'w.*' | while read tag; do
git rev-list -n 1 "${tag}"
done)
echo "Weekly tag SHA ${weekly_sha}"
# Extract the current tag and its SHA
current_tag=${GITHUB_REF#refs/tags/}
current_sha=$(git rev-list -1 "${current_tag}")
echo "Current tag: ${current_tag}"
current_sha=$(git rev-list -1 "${current_tag}") || echo "no_value"
echo "Current sha: ${current_sha}"
# Count occurrences of the current SHA in the weekly SHA list
n=$(echo "${weekly_sha}" | grep -c "${current_sha}")
n=$(echo "${weekly_sha}" | grep -c "${current_sha}") || echo "0"
echo "Current tag ${current_tag} (${current_sha}) SHA found ${n} time(s)"
# Determine whether to skip the upload based on the count
Expand Down

0 comments on commit 8968ce2

Please sign in to comment.