Skip to content

fix: mypy does not support dinamic types #320

fix: mypy does not support dinamic types

fix: mypy does not support dinamic types #320

Workflow file for this run

name: Merge into develop branch
on:
push:
branches:
- develop
jobs:
prepare:
name: Calculate Version and Build Number
runs-on: ubuntu-24.04
outputs:
version: ${{ steps.version.outputs.value }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Find Latest Tag
id: latest_tag
uses: oprypin/[email protected]
with:
repository: ${{ github.repository }}
regex: '^v\d+\.\d+\.\d+'
releases-only: true
- name: Extract semantic version
id: semantic
run: echo "value=$(echo ${{ steps.latest_tag.outputs.tag }} | sed -r 's|([0-9]+.[0-9]+.[0-9]+).*|\1|g')" >> $GITHUB_OUTPUT
- name: Count number or releases for tag
id: build_number
run: echo "value=$(($(git tag | grep -c ${{ steps.semantic.outputs.value }}.pre) + 1))" >> $GITHUB_OUTPUT
- name: Compute version
id: version
run: echo "value=${{ steps.semantic.outputs.value }}.pre${{ steps.build_number.outputs.value }}" >> $GITHUB_OUTPUT
prerelease-tag:
name: Create Prerelease Tag
runs-on: ubuntu-24.04
needs:
- prepare
steps:
- uses: ydataai/[email protected]
with:
tag: ${{ needs.prepare.outputs.version }}
message: ${{ github.event.head_commit.message }}
github_token: ${{ secrets.ACCESS_TOKEN }}