fix: timeseries gap comparison failing with no gaps for date index (#… #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge into develop branch | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
prepare: | |
name: Calculate Version and Build Number | |
runs-on: ubuntu-22.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/find-latest-tag@v1.1.1 | |
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-22.04 | |
needs: | |
- prepare | |
steps: | |
- uses: ydataai/create-tag@v1.0.0 | |
with: | |
tag: ${{ needs.prepare.outputs.version }} | |
message: ${{ github.event.head_commit.message }} | |
github_token: ${{ secrets.ACCESS_TOKEN }} |