Skip to content

badge

badge #158

Workflow file for this run

name: badge
on:
push:
branches:
- "master"
create:
tags:
- "*"
jobs:
master:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- id: version
name: Install package
run: |
python -m pip install .
echo "##[set-output name=version;]$(python -c'import ktplotspy; print(ktplotspy.__version__)')"
- name: version badge
uses: RubbaBoy/BYOB@v1.3.0
with:
NAME: version
LABEL: "version"
ICON: "github"
STATUS: ${{ steps.version.outputs.version}}
COLOR: green
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}