Skip to content

Commit a9847f3

Browse files
committed
Removing Java from dispatch-workflows.yml
1 parent 773e8c3 commit a9847f3

4 files changed

Lines changed: 30 additions & 14 deletions

File tree

.github/workflows/ci-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI Java
1+
name: 'CI Java'
22
on:
33
workflow_dispatch:
44
schedule:

.github/workflows/dispatch-workflows.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ on:
1010
- trunk
1111

1212
jobs:
13-
check_java:
14-
uses: ./.github/workflows/should-workflow-run.yml
15-
with:
16-
bazel-target-prefix: '//java'
17-
18-
run_java:
19-
uses: ./.github/workflows/java.yml
20-
needs: check_java
21-
if: ${{ needs.check_java.outputs.result == 'true' }}
22-
2313
check_python:
2414
uses: ./.github/workflows/should-workflow-run.yml
2515
with:

.github/workflows/java-ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Configuration for Java CI
2+
name: 'CI - Java'
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
action:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: dessant/lock-threads@v2
18+
with:
19+
process-only: 'issues'
20+
issue-lock-inactive-days: '30'
21+
issue-lock-reason: ''
22+
issue-lock-comment: >
23+
This issue has been automatically locked since there
24+
has not been any recent activity after it was closed.
25+
Please open a new issue for related bugs.

scripts/github-actions/should-workflow-run.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ echo "::set-output name=bazel-targets::${bazel_targets[*]}"
2525
echo "::set-output name=run-workflow::false"
2626

2727
if (( ${#bazel_targets[@]} == 0 )); then
28-
echo "No bazel targets found after checking the diff."
29-
exit 0
28+
echo "No bazel targets found after checking the diff."
29+
exit 0
3030
fi
3131

3232
if [[ " ${bazel_targets[*]} " == *"$BAZEL_TARGET_PREFIX"* ]]; then
33-
echo "::set-output name=run-workflow::true"
33+
echo "::set-output name=run-workflow::true"
34+
echo "Bazel targets found: ${bazel_targets[*]}."
3435
fi
3536

3637

0 commit comments

Comments
 (0)