cabforum / build-guidelines-action

Action to build Pandoc-flavored Guidelines into their final form
0 stars 3 forks source link

Export version and include in filename #50

Closed vanbroup closed 8 months ago

vanbroup commented 8 months ago

This PR adds additional information to the action output so that we do not have to specify this for each repository action individually.

At the same time it included the document version in the filenames (plus this short commit hash for draft documents) so that it becomes easier to identify downloads and that we can attach the documents directly to a GitHub release.

The changelog filters down to only include the changes for the specific document, ignoring changes to other documents or files in the repository.

In many cases there are no changes as we are only looking back to the latest commit in the target branch, but the PR is likely for a specific document. This generally means that the other documents do not need a new release or build as they have not changed. I will likely handle this by checking for which files have changed and only include those in the build matrix. At the same time we can check if the commits/versions have changed or not.