Skip to content

Commit

Permalink
Move logic to loop
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCrawfis committed Sep 20, 2023
1 parent 4419eaf commit 01d2701
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
run: |
mkdir -p docs/docs/snippets/resource-docs/
export RESOURCE_DOCS=$(find radius/hack/bicep-types-radius/generated/ -type f -name '*.md' -print0 | xargs -0)
export RESOURCE_DOCS=$(echo $RESOURCE_DOCS | sed 's/radius\/hack\/bicep-types-radius\/generated\///g')
echo Copying files $RESOURCE_DOCS
for file in $RESOURCE_DOCS; do
cp radius/hack/bicep-types-radius/generated/$file docs/docs/snippets/resource-docs/$file
fileTarget=${file#radius/hack/bicep-types-radius/generated/}
echo Copying $file to docs/docs/snippets/resource-docs/$fileTarget
cp $file docs/docs/snippets/resource-docs/$fileTarget
done
- name: Upload resource reference docs
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 01d2701

Please sign in to comment.