We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02dc7cc commit 3a77647Copy full SHA for 3a77647
.github/workflows/maven-cd.yml
@@ -45,7 +45,7 @@ jobs:
45
46
- name: Verify tag commit is reachable from master
47
run: |
48
- if ! git branch -r --contains "${{ github.sha }}" | grep -q "origin/master"; then
+ if ! git merge-base --is-ancestor "${{ github.sha }}" origin/master; then
49
echo "❌ Tag commit ${{ github.sha }} is not reachable from origin/master"
50
exit 1
51
fi
0 commit comments