Skip to content

Commit

Permalink
Add tag script
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Jul 7, 2022
1 parent 28a0334 commit ab33724
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ default:
@just --list --unsorted

test file="dev":
act -b --insecure-secrets --env-file .env -W tests/{{file}}.yml
act -b --insecure-secrets --env-file .env -W tests/{{file}}.yml

graph file="dev":
act -W tests/{{file}}.yml -g
act -W tests/{{file}}.yml -g

clean:
rm -rf polkadot workflow _actions

# Generate the readme as .md
md:
#!/usr/bin/env bash
asciidoctor -b docbook -a leveloffset=+1 -o - README_src.adoc | pandoc --markdown-headings=atx --wrap=preserve -t markdown_strict -f docbook - > README.md
#!/usr/bin/env bash
asciidoctor -b docbook -a leveloffset=+1 -o - README_src.adoc | pandoc --markdown-headings=atx --wrap=preserve -t markdown_strict -f docbook - > README.md
tag:
#!/usr/bin/env bash
latest=$(git tag | sort -Vr | head -n1)
version=$(echo $latest |sed -E 's/v//g')
bumped=$(semver-cli $version --increment minor)
echo "Tagging v$bumped ..."
git tag "v$bumped"
git tag | sort -Vr | head -n10

0 comments on commit ab33724

Please sign in to comment.