Skip to content

Commit

Permalink
test: update docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
btlghrants committed Dec 2, 2023
1 parent 6019435 commit a367c63
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
22 changes: 22 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
here=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
me="$(basename ${BASH_SOURCE[0]})"

function help() {
cat <<- EOH
$me <docs repo> <core repo>
EOH
}

docs_repo="$1" ; shift 1
if [ -z "$docs_repo" ] ; then help ; echo "Required: <docs repo>"$'\n' ; exit 1 ; fi
docs_repo=$( realpath "$docs_repo" )

core_repo="$1" ; shift 1
if [ -z "$core_repo" ] ; then help ; echo "Required: <core repo>"$'\n' ; exit 1 ; fi
core_repo=$( realpath "$core_repo" )


echo " Docs repo path: \"$docs_repo\""
echo " Core repo path: \"$core_repo\""

0 comments on commit a367c63

Please sign in to comment.