Skip to content

Commit

Permalink
branch -a --contains
Browse files Browse the repository at this point in the history
  • Loading branch information
imsodin committed Jul 16, 2023
1 parent 0848af2 commit 1c141a1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,10 @@ jobs:
git config --system --add safe.directory '*'
git branch -a
git rev-parse HEAD
git branch --contains $(git rev-parse HEAD)
git fetch
git branch -a
git rev-parse HEAD
git branch --contains $(git rev-parse HEAD)
if ! git branch --contains $(git rev-parse HEAD) | grep release-test >/dev/null; then
git branch -a --contains $(git rev-parse HEAD)
git branch -a --contains $(git rev-parse HEAD) | grep release-test
if ! git branch -a --contains $(git rev-parse HEAD) | grep release-test >/dev/null; then
echo "Tag is not part of release branch - aborting..."
exit 1
fi
- name: build_release
Expand Down

0 comments on commit 1c141a1

Please sign in to comment.