From 4fd284e073d254a11e4ea4e997f568b7ebd7db2a Mon Sep 17 00:00:00 2001 From: madhead Date: Mon, 18 Apr 2022 01:01:05 +0200 Subject: [PATCH] Add herald workflow --- .github/workflows/herald.yml | 30 ++++++++++++++++++++++++++++++ herald/Dockerfile | 1 + 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/herald.yml diff --git a/.github/workflows/herald.yml b/.github/workflows/herald.yml new file mode 100644 index 00000000..b334d09e --- /dev/null +++ b/.github/workflows/herald.yml @@ -0,0 +1,30 @@ +name: Herald + +on: + workflow_dispatch: + schedule: + - cron: '0 7 * * *' + +jobs: + debounce: + name: Debounce + runs-on: ubuntu-latest + outputs: + debounce: ${{ steps.debounce.outputs.should_skip }} + steps: + - id: debounce + uses: fkirc/skip-duplicate-actions@master + with: + concurrent_skipping: same_content_newer + skip_after_successful_duplicate: false + + render: + name: Herald + needs: debounce + if: ${{ needs.debounce.outputs.debounce != 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: posts + - uses: docker://ghcr.io/javaby/herald:latest diff --git a/herald/Dockerfile b/herald/Dockerfile index 7ab6c54d..41d6fb40 100644 --- a/herald/Dockerfile +++ b/herald/Dockerfile @@ -3,5 +3,6 @@ ARG JAVA=17 FROM openjdk:${JAVA} COPY build/install/* /opt/herald +RUN microdnf install findutils ENTRYPOINT ["/opt/herald/bin/herald"]