dita-ot / dita-ot-action

GitHub Action for building PDFs and static websites using DITA Open Toolkit
https://www.dita-ot.org
Apache License 2.0
8 stars 4 forks source link

Automate update and tagging of Dockerfile #6

Closed jason-fox closed 1 year ago

jason-fox commented 1 year ago

Description

PR to add a Github action to update the Dockerfile with latest DITA-OT release.

There are two modes of operation.

Motivation and Context

Fixes #5

How Has This Been Tested?

Test runs can be seen here

Type of Changes

New feature (non-breaking change which adds functionality)

jason-fox commented 1 year ago

Ideally the Cron job schedule mode shouldn't be necessary. dita-ot/dita-ot should raise a repository_dispatch and it could be replaced with

  repository_dispatch:
    types: [lib-update]

The calling code from dita-ot/dita-ot would be:

dispatch:
    runs-on: ubuntu-latest
    steps:
      - name: Repository Dispatch
        uses: peter-evans/repository-dispatch@v1
        with:
          token: ${{ secrets.REPO_ACCESS_TOKEN }}
          repository: /dita-ot/dita-ot-action
          event-type: lib-update