Skip to content
Snippets Groups Projects
add_version.sh 165 B
Newer Older
  • Learn to ignore specific revisions
  • Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    #!/bin/bash
    VER=$(git log --pretty=format:'/ ver. %h / %ai' -n 1)
    sed "s,__VERSION__, $VER," mkdocs.yml -i
    YEAR=$(date +"%Y")
    sed "s,__YEAR__, $YEAR," mkdocs.yml -i