From 2214bac33fe6e65dd283fedae46052ac93cd9bd1 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 8 Feb 2022 15:04:19 +0100 Subject: [PATCH 1/3] Create update-changelog.md --- .github/workflows/update-changelog.md | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/update-changelog.md diff --git a/.github/workflows/update-changelog.md b/.github/workflows/update-changelog.md new file mode 100644 index 00000000000..0200e2b9446 --- /dev/null +++ b/.github/workflows/update-changelog.md @@ -0,0 +1,29 @@ +name: "Update Changelog" + +on: + release: + types: [released] + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + ref: ${{ github.ref_name }} + + - name: Update Changelog + uses: stefanzweifel/changelog-updater-action@v1 + with: + latest-version: ${{ github.event.release.tag_name }} + release-notes: ${{ github.event.release.body }} + compare-url-target-revision: ${{ github.event.release.target_commitish }} + + - name: Commit updated CHANGELOG + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: ${{ github.event.release.target_commitish }} + commit_message: Update CHANGELOG.md + file_pattern: CHANGELOG.md From 3a618668b85ed66b533d9d0e96665a9e329e9a43 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 8 Feb 2022 15:06:14 +0100 Subject: [PATCH 2/3] Update .gitattributes --- .gitattributes | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index 967315dd3d1..510d9961f10 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,10 @@ * text=auto -*.css linguist-vendored -*.scss linguist-vendored -*.js linguist-vendored + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore CHANGELOG.md export-ignore From 625b9468560413ff538d137a7cf344d2844d1039 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 8 Feb 2022 15:10:13 +0100 Subject: [PATCH 3/3] Rename update-changelog.md to update-changelog.yml --- .github/workflows/{update-changelog.md => update-changelog.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{update-changelog.md => update-changelog.yml} (100%) diff --git a/.github/workflows/update-changelog.md b/.github/workflows/update-changelog.yml similarity index 100% rename from .github/workflows/update-changelog.md rename to .github/workflows/update-changelog.yml