Closed jason-fox closed 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
Description
PR to add a Github action to update the Dockerfile with latest DITA-OT release.
There are two modes of operation.
workflow_dispatch
to manually add a tag - this can be tested by adding the 4.0 tag and 4.0.1 release.schedule
- once a week the task will check for a new release.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)