-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathjustfile
31 lines (25 loc) · 802 Bytes
/
justfile
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
# List available commands
default:
@just --list --unsorted
test file="dev":
act -b --insecure-secrets --env-file .env -W tests/{{file}}.yml
graph file="dev":
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
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
tag_push:
#!/usr/bin/env bash
latest=$(git tag | sort -Vr | head -n1)
git push origin $latest