Skip to content

Commit

Permalink
chore(cli): Bump CLI version to 2.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatelot committed Feb 28, 2024
1 parent a758d91 commit 57fa122
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/test_changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Test get latest tag

on:
workflow_dispatch:
inputs:
bump:
description: "Bump the version of the API"
type: choice
required: true
default: "patch"
options:
- "patch"
- "minor"
- "major"
- "prepatch"
- "preminor"
- "premajor"
env:
DRAFT: ${{ contains(inputs.bump, 'pre') }}

jobs:
release:
name: Create a release
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Git pull
run: git pull

- name: Get last tag (that is not a `pre` tag) for api
id: last_tag
run: |
echo "last_tag=$(git tag --list | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+@api$' | sort -r | head -n 1)" >> $GITHUB_OUTPUT
echo "last_tag=$(git tag --list | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+@api$' | sort -r | head -n 1)" >> $GITHUB_STEP_SUMMARY
- name: Find Tag
id: tagger
uses: jimschubert/query-tag-action@v1
with:
include: "v*@api"
exclude: "v*a*@api"
commit-ish: "HEAD~"

- name: Show Tag
id: display
run: |
echo 'Output from Find Tag: ${{steps.tagger.outputs.tag}}'
- uses: oprypin/find-latest-tag@v1
id: chipmunk_version
with:
repository: ${{ github.repository }}
releases-only: false # This repository doesn't use GitHub's "release" feature.
regex: '^v[0-9]+\.[0-9]+\.[0-9]+@api$'

- name: Show latest tag
run: echo "Latest tag is ${{ steps.chipmunk_version.outputs.tag }}"
2 changes: 1 addition & 1 deletion bases/ecoindex/cli/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.25.1
2.26.0
2 changes: 1 addition & 1 deletion projects/ecoindex_cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ecoindex_cli"
version = "2.25.1"
version = "2.26.0"
description = "`ecoindex-cli` is a CLI tool that let you make ecoindex tests on given pages"
authors = ['Vincent Vatelot <[email protected]>']
license = "Creative Commons BY-NC-ND"
Expand Down

1 comment on commit 57fa122

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage PR

Branch coverage •
FileStmtsMissCoverMissing
TOTAL69923067% 
report-only-changed-files is enabled. No files were changed during this commit :)

Please sign in to comment.