update #5
1 changed files with 15 additions and 31 deletions
46
.github/workflows/build.yml
vendored
46
.github/workflows/build.yml
vendored
|
@ -3,27 +3,11 @@ name: Build repo
|
|||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
workflow_run:
|
||||
workflows: ["Pull Request Labeler"]
|
||||
types:
|
||||
- completed
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
jobs:
|
||||
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
|
||||
|
||||
permissions:
|
||||
|
@ -55,19 +39,19 @@ jobs:
|
|||
run: ./gradlew build --no-build-cache
|
||||
|
||||
docker-compose-tests:
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
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, 'Java') ||
|
||||
contains(github.event.pull_request.labels.*.name, 'Back End') ||
|
||||
contains(github.event.pull_request.labels.*.name, 'Security') ||
|
||||
contains(github.event.pull_request.labels.*.name, 'API') ||
|
||||
contains(github.event.pull_request.labels.*.name, 'Docker') ||
|
||||
contains(github.event.pull_request.labels.*.name, 'Test')
|
||||
)
|
||||
)
|
||||
# if: github.event_name == 'push' && github.ref == 'refs/heads/main' ||
|
||||
# (github.event_name == 'pull_request' &&
|
||||
# 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, 'Java') ||
|
||||
# contains(github.event.pull_request.labels.*.name, 'Back End') ||
|
||||
# contains(github.event.pull_request.labels.*.name, 'Security') ||
|
||||
# contains(github.event.pull_request.labels.*.name, 'API') ||
|
||||
# contains(github.event.pull_request.labels.*.name, 'Docker') ||
|
||||
# contains(github.event.pull_request.labels.*.name, 'Test')
|
||||
# )
|
||||
# )
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
Loading…
Reference in a new issue