Skip to content

Commit

Permalink
Add blocking merge
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 4, 2023
1 parent 731265b commit 24c56e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/github-actions-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
run: go test -v ./... -tags ci

- name: Verify execution results
if: failure()
run: |
if [ $? -ne 0 ]; then
echo "Verification failed, blocking merge"
echo "Previous steps failed. Cannot merge pull request."
exit 1
fi
7 changes: 3 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ jobs:
# install-mode: "goinstall"

- name: Verify execution results
if: failure()
run: |
if [ $? -ne 0 ]; then
echo "Verification failed, blocking merge"
exit 1
fi
echo "Previous steps failed. Cannot merge pull request."
exit 1

0 comments on commit 24c56e0

Please sign in to comment.