39 lines (36 loc) · 958 Bytes
/
badge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- id: version
name: Install package
run: |
pip install setuptools wheel setuptools_scm numpy
pip install git+https://www.github.com/zktuong/dandelion.git
echo "##[set-output name=version;]$(python dandelion/logging/_badge.py)"
- name: version badge
uses: RubbaBoy/BYOB@v1.2.1
with:
NAME: master-version
LABEL: 'master-version'
ICON: 'github'
STATUS: ${{ steps.version.outputs.version}}
COLOR: green
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}