From 975828f7485378f9a0dce0a13f46d7a8f3c89bb7 Mon Sep 17 00:00:00 2001 From: Meysam Hadeli <35596795+meysamhadeli@users.noreply.github.com> Date: Fri, 13 Jan 2023 23:39:00 +0330 Subject: [PATCH 1/2] ci: Add pr-title-checker and update-changelog --- .github/workflows/pr-title-checker.yaml | 23 ++++++++++++++++++++ .github/workflows/update-changelog.yml | 28 +++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/pr-title-checker.yaml create mode 100644 .github/workflows/update-changelog.yml diff --git a/.github/workflows/pr-title-checker.yaml b/.github/workflows/pr-title-checker.yaml new file mode 100644 index 0000000..bf7d0ff --- /dev/null +++ b/.github/workflows/pr-title-checker.yaml @@ -0,0 +1,23 @@ +name: Check PR title + +on: + pull_request: + types: + - opened + - reopened + - edited + - synchronize + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + title-checker: + name: Check PR title + runs-on: [ self-hosted ] + + steps: + - uses: aslafy-z/conventional-pr-title-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml new file mode 100644 index 0000000..55e006c --- /dev/null +++ b/.github/workflows/update-changelog.yml @@ -0,0 +1,28 @@ +name: Update Changelog + +on: + release: + types: + - released + +jobs: + update: + name: Update Changelog + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Update Changelog + uses: stefanzweifel/changelog-updater-action@v1 + with: + latest-version: ${{ github.event.release.name }} + release-notes: ${{ github.event.release.body }} + + - name: Commit updated Changelog + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: main + commit_message: 'docs(changelog): update changelog' + file_pattern: CHANGELOG.md \ No newline at end of file From 0d7698d82c8afefd37cdfcf528b4b924a37aeac6 Mon Sep 17 00:00:00 2001 From: Meysam Hadeli <35596795+meysamhadeli@users.noreply.github.com> Date: Fri, 13 Jan 2023 23:40:13 +0330 Subject: [PATCH 2/2] ci: Add CHANGELOG --- CHANGELOG.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29