Skip to content

Commit

Permalink
ci(build): Ignore markdown files
Browse files Browse the repository at this point in the history
Prevent triggering GitHub Action for markdown file updates.
  • Loading branch information
yeroldsan authored Apr 11, 2024
1 parent 39e3065 commit ede0867
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,25 @@ name: Build Pull Request
on:
pull_request:
branches: [ "main" ]
paths-ignore:
- '**.md'

jobs:
build:

build-gradle:
runs-on: ubuntu-latest
timeout-minutes: 5
timeout-minutes: 10
steps:
- uses: actions/checkout@v4.1.2
- name: set up JDK 11
uses: actions/setup-java@v4.2.1
- name: Checkout project scources
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Generate required local propeties file
run: |
echo "server.client.id=\"your_server_client_id\"" > local.properties
echo "api.url=\"your_api_url\"" >> local.properties
echo "api.key=\"your_api_key\"" >> local.properties
- name: Generate required local.propeties file for CI
run: touch local.properties
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand Down

0 comments on commit ede0867

Please sign in to comment.