Skip to content

Commit

Permalink
make task autoapprove (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
boroda4436 authored Sep 22, 2023
1 parent 87a0c1f commit ec48ac7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
name: Java CI

on: [push, pull_request]
on: [push, pull_request_target]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- uses: mate-academy/auto-approve-action@v2
if: ${{ github.event.pull_request && success() }}
with:
github-token: ${{ github.token }}
- uses: mate-academy/auto-reject-action@v2
if: ${{ github.event.pull_request && failure() }}
with:
github-token: ${{ github.token }}

1 comment on commit ec48ac7

@Tatian1801
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding Requirements

Please sign in to comment.