1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-11 02:10:11 +01:00

Update build.yml

This commit is contained in:
Anthony Stirling 2024-08-16 11:44:49 +01:00 committed by GitHub
parent f5258c593b
commit 8602f38fbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,27 +3,11 @@ name: Build repo
on: on:
push: push:
branches: ["main"] branches: ["main"]
workflow_run: pull_request:
workflows: ["Pull Request Labeler"] branches: ["main"]
types:
- completed
jobs: jobs:
build: build:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' ||
(github.event_name == 'workflow_run' &&
contains(github.event.workflow_run.pull_request.labels.*.name, 'licenses') == false &&
(
contains(github.event.workflow_run.pull_request.labels.*.name, 'Front End') ||
contains(github.event.workflow_run.pull_request.labels.*.name, 'Java') ||
contains(github.event.workflow_run.pull_request.labels.*.name, 'Back End') ||
contains(github.event.workflow_run.pull_request.labels.*.name, 'Security') ||
contains(github.event.workflow_run.pull_request.labels.*.name, 'API') ||
contains(github.event.workflow_run.pull_request.labels.*.name, 'Docker') ||
contains(github.event.workflow_run.pull_request.labels.*.name, 'Test')
)
)
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
@ -55,19 +39,19 @@ jobs:
run: ./gradlew build --no-build-cache run: ./gradlew build --no-build-cache
docker-compose-tests: docker-compose-tests:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || # if: github.event_name == 'push' && github.ref == 'refs/heads/main' ||
(github.event_name == 'pull_request' && # (github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'licenses') == false && # contains(github.event.pull_request.labels.*.name, 'licenses') == false &&
( # (
contains(github.event.pull_request.labels.*.name, 'Front End') || # contains(github.event.pull_request.labels.*.name, 'Front End') ||
contains(github.event.pull_request.labels.*.name, 'Java') || # contains(github.event.pull_request.labels.*.name, 'Java') ||
contains(github.event.pull_request.labels.*.name, 'Back End') || # contains(github.event.pull_request.labels.*.name, 'Back End') ||
contains(github.event.pull_request.labels.*.name, 'Security') || # contains(github.event.pull_request.labels.*.name, 'Security') ||
contains(github.event.pull_request.labels.*.name, 'API') || # contains(github.event.pull_request.labels.*.name, 'API') ||
contains(github.event.pull_request.labels.*.name, 'Docker') || # contains(github.event.pull_request.labels.*.name, 'Docker') ||
contains(github.event.pull_request.labels.*.name, 'Test') # contains(github.event.pull_request.labels.*.name, 'Test')
) # )
) # )
runs-on: ubuntu-latest runs-on: ubuntu-latest