Skip to content

Commit

Permalink
Change some commit status behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
SirEndii committed Mar 31, 2024
1 parent 560021d commit c217868
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ jobs:
- name: Set commit status as pending
uses: myrotvorets/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: pending
context: Building AP
sha: ${{ github.sha }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build with Gradle
run: ./gradlew build
- name: Set final commit status
uses: myrotvorets/set-commit-status[email protected]
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
context: Building AP
sha: ${{ github.sha }}
commit-status-final:
name: Set final commit status
uses: myrotvorets/[email protected]
if: always()
needs: build
with:
status: ${{ needs.build.result }}
context: Building AP

0 comments on commit c217868

Please sign in to comment.