Skip to content

Commit

Permalink
Merge pull request #26 from carloscasalar/14-add-some-automation-to-r…
Browse files Browse the repository at this point in the history
…elease-new-versions-of-the-lib

Add some automation to release new versions of the lib
  • Loading branch information
carloscasalar authored Dec 10, 2024
2 parents f213fcb + ab3466b commit d0a02fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/validate-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
# This workflow validates that change log has a valid format

name: Validate Changelog

on:
pull_request:
branches:
- main

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Validate CHANGELOG format
run: |
if ! grep -qE '^## \[[0-9]+\.[0-9]+\.[0-9]+\] - [0-9]{4}-[0-9]{2}-[0-9]{2}' CHANGELOG.md; then
echo "CHANGELOG format is incorrect, version section title should be in the format ## [X.Y.Z] - YYYY-MM-DD"
exit 1
fi
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] - 2024-MM-DD
## [1.0.0] - 2024-12-10

### Added
- Initial release of the CLI and library for generating Traveller NPCs.
Expand Down

0 comments on commit d0a02fd

Please sign in to comment.