We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThreatFlux/YaraFlux'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
version-bump.yml•2.71 KiB
name: Version Auto-increment
on:
push:
branches: [ main ]
paths-ignore:
- 'pyproject.toml'
- 'setup.py'
- '.github/workflows/**'
- '**.md'
jobs:
version-bump:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.13'
- name: Get current version
id: current_version
run: |
# Check if make is available
if ! command -v make &> /dev/null
then
echo "Make could not be found, installing..."
sudo apt-get update
sudo apt-get install make
fi
# Use Makefile to get the current version
echo "Getting current version information..."
make get-version
# Extract version from __init__.py (same as Makefile does)
VERSION=$(cat src/yaraflux_mcp_server/__init__.py | grep __version__ | sed -e "s/__version__ = \"\(.*\)\"/\1/")
echo "version=$VERSION" >> $GITHUB_OUTPUT
# Calculate new version using the same logic as Makefile
MAJOR=$(echo $VERSION | cut -d. -f1)
MINOR=$(echo $VERSION | cut -d. -f2)
PATCH=$(echo $VERSION | cut -d. -f3)
NEW_PATCH=$(expr $PATCH + 1)
NEW_VERSION="$MAJOR.$MINOR.$NEW_PATCH"
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
- name: Bump version
run: |
echo "Bumping version from ${{ steps.current_version.outputs.version }} to ${{ steps.current_version.outputs.new_version }}..."
make bump-version
# Verify the version was updated correctly
echo "Verifying version update..."
make get-version
- name: Create version bump commit
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add pyproject.toml setup.py Dockerfile src/yaraflux_mcp_server/__init__.py
git commit -m "chore: bump version to ${{ steps.current_version.outputs.new_version }}"
git tag -a "v${{ steps.current_version.outputs.new_version }}" -m "Version ${{ steps.current_version.outputs.new_version }}"
- name: Push changes
uses: ad-m/github-push-action@77c5b412c50b723d2a4fbc6d71fb5723bcd439aa # v1.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true
outputs:
new_version: ${{ steps.current_version.outputs.new_version }}