diff --git a/.github/workflows/preview-bump-version.yml b/.github/workflows/preview-bump-version.yml new file mode 100644 index 0000000..ca12a1f --- /dev/null +++ b/.github/workflows/preview-bump-version.yml @@ -0,0 +1,32 @@ +name: Preview Bump version + +on: + workflow_dispatch: + +jobs: + preview_version_bump: + if: ${{ !startsWith(github.event.head_commit.message, 'bump:') && github.ref == 'refs/heads/main' }} + runs-on: ubuntu-latest + container: + image: commitizen/commitizen:4.8.3@sha256:08a078c52b368f85f34257a66e10645ee74d8cbe9b471930b80b2b4e95a9bd4a + + name: "Preview next version" + steps: + - uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1 + id: app-token + with: + app-id: ${{ vars.ELEMENTSINTERACTIVE_BOT_APP_ID }} + private-key: ${{ secrets.ELEMENTSINTERACTIVE_BOT_PRIVATE_KEY }} + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + fetch-depth: 0 + token: ${{ steps.app-token.outputs.token }} + ref: ${{ github.head_ref }} + - name: Configure git + run: | + git config --global --add safe.directory "*" # otherwise cz does not find .git/ directory + + - id: cz + name: Preview next version + run: | + cz bump --get-next \ No newline at end of file diff --git a/README.md b/README.md index d57f9cb..83b31aa 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ # 🔍 Lightman AI +![Build Status](https://github.com/elementsinteractive/lightman-ai/actions/workflows/test.yml/badge.svg) +[![PyPI version](https://img.shields.io/pypi/v/lightman-ai)](https://pypi.org/project/lightman-ai/) +[![Docker version](https://img.shields.io/docker/v/elementsinteractive/lightman-ai?label=DockerHub&logo=docker&logoColor=f5f5f5)](https://hub.docker.com/r/elementsinteractive/lightman-ai) +[![Python Version](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue?logo=python&logoColor=yellow)](https://pypi.org/project/lightman-ai/) +[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) +[![License](https://img.shields.io/github/license/elementsinteractive/lightman-ai)](LICENSE) + > LLM-Powered Cybersecurity News Intelligence Platform