From 8317f60c9eaee539a6a19fc7f6c7baa73241d66b Mon Sep 17 00:00:00 2001 From: Jimmy Briggs Date: Wed, 13 Mar 2024 16:28:15 -0400 Subject: [PATCH 1/2] [docs]: add CHANGELOG.md and GHA resolves #8 --- .github/workflows/changelog.yml | 37 +++++++++++++++++++++++++++++++++ CHANGELOG.md | 0 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/changelog.yml create mode 100644 CHANGELOG.md diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..1508471 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,37 @@ +name: Automate Changelog +on: + workflow_dispatch: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + changelog: + name: Generate changelog + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + - name: Run Git Cliff + uses: tj-actions/git-cliff@v1.5.0 + id: git-cliff + with: + args: "--verbose" + output: "CHANGELOG.md" + template-config: https://raw.githubusercontent.com/noclocks/.github/main/workflow-templates/cliff.template.toml + - name: Print Changelog + id: print-changelog + run: | + cat "CHANGELOG.md" + - name: Commit and Push + id: commit-push + run: | + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + set +e + git add CHANGELOG.md + git commit -m "[chore]: update changelog" + git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git "main" diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 From d599d8c135d187b7311c62989025e38dd3649582 Mon Sep 17 00:00:00 2001 From: Jimmy Briggs Date: Wed, 13 Mar 2024 16:31:17 -0400 Subject: [PATCH 2/2] [docs]: add badge to README for #8 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a5e7b76..01487ef 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,14 @@ # Law Offices of Villard Bastien Website +> [!NOTE] > Bastien Law website (clone) built with Remix (+ Vite for SPA mode) + + +[![Automate Changelog](https://github.com/noclocks/bastienlaw-remix/actions/workflows/changelog.yml/badge.svg)](https://github.com/noclocks/bastienlaw-remix/actions/workflows/changelog.yml) + + + ## Tech Stack `bastienlaw-remix` is built on the following main stack: