Skip to content

Commit

Permalink
remove workflow_run which does not work for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Jan 14, 2025
1 parent 1757cd5 commit 686ad35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 29 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
name: Android CI

on:
workflow_dispatch:
workflow_run:
workflows: [ 'Code format check' ]
types: [ completed ]
on: [ push ]

jobs:
build:

runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}

- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Verify code format
run: ./gradlew spotlessCheck || echo "::error title=Code format check failed::Use ./gradlew applySpotless to fix" && exit 1

- name: Build with Gradle
run: NO_GPG_SIGN=true ./gradlew --stacktrace check test build javadocJar publishToMavenLocal

Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/code-formatting.yml

This file was deleted.

0 comments on commit 686ad35

Please sign in to comment.