Skip to content

Commit

Permalink
Exclude actions repo from confluence workflow; add mark flags (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukiffer committed Feb 24, 2023
1 parent 8d611f5 commit 3ac5b5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/deployment/deploy-docs-to-confluence.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ function process_files() {
continue
fi

# Skip any files that are included in this repository (which is checked out to reference scripts like this one).
if [[ "$file" == ./.actions/* ]]; then
echo "::debug::Skipping $file"
continue
fi

if ! grep -qP '<!--\s*Space:\s*\S+\s*-->' "$file"; then
echo "::notice::Skipping $file missing metadata: Space"
continue
Expand All @@ -31,7 +37,7 @@ function process_files() {
echo "Syncing $file..."
pushd "$(dirname "$file")" > /dev/null || exit
filename="$(basename "$file")"
mark -k -f "$filename" 2> >(tee "$error_path")
mark -k --drop-h1 -f "$filename" 2> >(tee "$error_path")
exit_status="$?"
if [ $exit_status -ne 0 ]; then
cat "$error_path"
Expand Down

0 comments on commit 3ac5b5c

Please sign in to comment.