File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383 run : |
8484 git fetch --tags --force
8585 SHA="${{ github.event.workflow_run.head_sha }}"
86- TAG=$(git for-each-ref --sort=-refname --format '%(refname:short)' refs/tags | 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 }}"
Original file line number Diff line number Diff line change 3838 run : |
3939 git fetch --tags --force
4040 SHA="${{ github.event.workflow_run.head_sha }}"
41- TAG=$(git for-each-ref --sort=-refname --format '%(refname:short)' refs/tags | 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
You can’t perform that action at this time.
0 commit comments