diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1f2904c7e..8ab5ff32c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -33,7 +33,6 @@ jobs: with: repository: defenseunicorns/pepr path: core - # fetch-tags: true - name: Get current defenseunicorns/pepr Release id: get_current_pepr_release_version @@ -44,11 +43,5 @@ jobs: - name: Run a multi-line script run: | - cd docs - ls -la - cd ../core - ls -la echo "${{ steps.get_current_pepr_release_version.outputs.release }}" - # figure out if new release - # if so... - # else ... + ./docs/build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 000000000..7248e28e6 --- /dev/null +++ b/build.sh @@ -0,0 +1,22 @@ +here=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +me="$(basename ${BASH_SOURCE[0]})" + +function help() { + cat <<- EOH + + $me + + EOH +} + +docs_repo="$1" ; shift 1 +if [ -z "$docs_repo" ] ; then help ; echo "Required: "$'\n' ; exit 1 ; fi +docs_repo=$( realpath "$docs_repo" ) + +core_repo="$1" ; shift 1 +if [ -z "$core_repo" ] ; then help ; echo "Required: "$'\n' ; exit 1 ; fi +core_repo=$( realpath "$core_repo" ) + + +echo " Docs repo path: \"$docs_repo\"" +echo " Core repo path: \"$core_repo\"" \ No newline at end of file