Skip to content

Update workflow.yml #94

Update workflow.yml

Update workflow.yml #94

Workflow file for this run

name: Validate Blog With AI For Grammar Checks
on:
pull_request:
branches: [ master ]
types: [ opened, synchronize, reopened ]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Make gradlew executable
run: chmod +x ./build/gradlewCustom
- name: Build with Gradle
env: #Or as an environment variable
AI_LICENSE_KEY: ${{secrets.AI_LICENSE_KEY}}
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
cd ./build/
./gradlewCustom --build-file build-validate-ai.gradle --info --stacktrace runAIValidation
- name: REPORT
echo Building report
cat ../report.md
echo "$(cat ../report.md)" >> $GITHUB_STEP_SUMMARY