Skip to content

chore: fixed build.yml #308

chore: fixed build.yml

chore: fixed build.yml #308

Workflow file for this run

name: Build project with Maven
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '42 6 * * 1-5' # run nightly main builds on weekdays
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Java setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven
# - name: Setup Testcontainers Cloud Client
# uses: atomicjar/testcontainers-cloud-setup-action@v1
# with:
# token: ${{ secrets.TC_CLOUD_TOKEN }}
- name: Run Maven
run: mvn -B clean verify com.mycila:license-maven-plugin:check
- name: On Failure: dump Zeebe logs

Check failure on line 30 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
if: failure()
uses: jwalton/gh-docker-logs@v2
with:
images: 'ghcr.io/camunda-community-hub/zeebe-with-redis-exporter'
dest: './logs'
- name: On Failure: Tar logs
if: failure()
run: tar cvzf ./logs.tgz ./logs
- name: On Failure: Upload logs to GitHub
if: failure()
uses: actions/upload-artifact@master
with:
name: logs.tgz
path: ./logs.tgz