From 2f324e70e7f092dee03a9d999abb55e699df912a Mon Sep 17 00:00:00 2001 From: DevOps Bot Date: Thu, 27 Nov 2025 22:00:50 +0000 Subject: [PATCH] ci: pushing new workflows --- .github/workflows/changelog.yml | 35 +++++++++++++++++++++ .github/workflows/commit.yml | 2 +- .github/workflows/dependabot-auto-merge.yml | 10 +++--- 3 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..f56a3fc --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,35 @@ +jobs: + changelog: + name: changelog + runs-on: + - ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + fetch-tags: true + submodules: true + - id: previoustag + name: Get Latest Tag + run: |- + echo ::set-output name=tag::$(git describe --tags "$(git rev-list --tags --max-count=1)") + echo $(git describe --tags "$(git rev-list --tags --max-count=1)") + - id: changelog + if: github.ref_name == 'main' + name: Generate new Tag + uses: TriPSs/conventional-changelog-action@v6 + with: + fallback-version: ${{ steps.previoustag.outputs.tag }} + git-url: ${{ github.server_url != 'https://github.com' && 'git.yusufali.ca' || 'github.com' }} + github-token: ${{ github.token }} + output-file: false + skip-ci: false + skip-commit: true + skip-version-file: true + tag-prefix: '' +name: CHANGELOG +'on': + workflow_dispatch: {} +permissions: + contents: write +run-name: CHANGELOG diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 89efba3..8bba477 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -4,7 +4,7 @@ jobs: runs-on: - ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 fetch-tags: true diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 106b0ec..03cd6ef 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -16,12 +16,13 @@ jobs: runs-on: - ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 fetch-tags: true submodules: true - - name: Setup GitHub CLI + - &id001 + name: Setup GitHub CLI uses: ksivamuthu/actions-setup-gh-cli@v3 - env: GH_TOKEN: ${{secrets.GITHUB_TOKEN}} @@ -34,13 +35,12 @@ jobs: runs-on: - ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 fetch-tags: true submodules: true - - name: Setup GitHub CLI - uses: ksivamuthu/actions-setup-gh-cli@v3 + - *id001 - env: GH_TOKEN: ${{secrets.GITHUB_TOKEN}} PR_URL: ${{github.event.pull_request.html_url}}