Skip to content

Commit 726e423

Browse files
eli 612 - fix dev tag fetching issues in CD (#554)
* test - fix/workflow-dev-tag-issue on push * sort by refname * test commit * test commit * revert test commits * Revert "revert test commits" This reverts commit dd6988c. * Reapply "revert test commits" This reverts commit eef49b4. * fix ordering
1 parent 8c90c58 commit 726e423

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/base-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
run: |
8484
git fetch --tags --force
8585
SHA="${{ github.event.workflow_run.head_sha }}"
86-
TAG=$(git tag --points-at "$SHA" | grep '^dev-' | head -n1 || true)
86+
TAG=$(git tag --points-at "$SHA" | grep '^dev-' | sort -r | head -n1 || true)
8787
if [ -z "$TAG" ]; then
8888
echo "Using the dev tag provided in the input field" >&2
8989
TAG="${{ inputs.ref }}"

.github/workflows/cicd-3-test-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: |
3939
git fetch --tags --force
4040
SHA="${{ github.event.workflow_run.head_sha }}"
41-
TAG=$(git tag --points-at "$SHA" | grep '^dev-' | head -n1 || true)
41+
TAG=$(git tag --points-at "$SHA" | grep '^dev-' | sort -r | head -n1 || true)
4242
if [ -z "$TAG" ]; then
4343
echo "No dev-* tag found on $SHA" >&2
4444
exit 1

0 commit comments

Comments
 (0)