Skip to content

Commit 411dfda

Browse files
Update gradle check workflow (#14334)
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com> (cherry picked from commit 0731548) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 4ba335a commit 411dfda

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/gradle-check.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
jobs:
1515
check-files:
1616
runs-on: ubuntu-latest
17-
outputs:
17+
outputs:
1818
RUN_GRADLE_CHECK: ${{ steps.changed-files-specific.outputs.any_changed }}
1919
steps:
2020
- uses: actions/checkout@v3
@@ -26,7 +26,7 @@ jobs:
2626
release-notes/*.md
2727
.github/**
2828
*.md
29-
29+
3030
gradle-check:
3131
needs: check-files
3232
if: github.repository == 'opensearch-project/OpenSearch' && needs.check-files.outputs.RUN_GRADLE_CHECK == 'true'
@@ -158,20 +158,11 @@ jobs:
158158
159159
Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure [a flaky test](https://github.com/opensearch-project/OpenSearch/blob/1.x/DEVELOPER_GUIDE.md#flaky-tests) unrelated to your change?
160160
161-
- name: Create Issue On Push Failure
162-
if: ${{ github.event_name == 'push' && failure() }}
163-
uses: dblock/create-a-github-issue@v3
164-
env:
165-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166-
with:
167-
assignees: ${{ github.event.head_commit.author.username }}, ${{ github.triggering_actor }}
168-
filename: .github/ISSUE_TEMPLATE/failed_check.md
169-
170161
check-result:
171162
needs: [check-files, gradle-check]
172163
if: always()
173164
runs-on: ubuntu-latest
174165
steps:
175166
- name: Fail if gradle-check fails
176167
if: ${{ needs.check-files.outputs.RUN_GRADLE_CHECK && needs.gradle-check.result == 'failure' }}
177-
run: exit 1
168+
run: exit 1

0 commit comments

Comments
 (0)