Skip to content

Commit

Permalink
added workflow to sync, docs from repository as source of truth
Browse files Browse the repository at this point in the history
  • Loading branch information
sacha-roussakis-notter committed Feb 4, 2024
1 parent 0d35761 commit bda4a16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/sync-vaultify-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main
paths:
- '**/*.md' # Run workflow for any markdown file changes in the repo
- 'LICENSE' # Run workflow for changes to the LICENSE file in the root
- 'docs/cli/**' # Run workflow for any changes in the /docs/cli directory

jobs:
sync:
Expand Down Expand Up @@ -54,16 +58,6 @@ jobs:
rm -rf docs/cli/* || { echo "Failed to clear docs/cli directory"; exit 1; }
cp -R ../docs/cli/* docs/cli/ || { echo "Failed to copy cli directory"; exit 1; }
git add -A
if ! git diff --staged --quiet; then
echo "Changes detected. Committing and pushing..."
git commit -m "Synced from GitHub"
if ! git push; then
echo "Failed to push changes to Azure DevOps. Exiting."
exit 1
fi
else
echo "No changes to sync"
fi
git add .
git commit -m "Synced from GitHub"
git push origin main
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ In summary, `Vaultify` empowers you to optimize your Terraform state management,

### Get Started

Please refer to [Vaultify](https://vaultify.buungroup.com) for documentation.
Please refer to [Vaultify](https://vaultify.buungroup.com) for documentation..

Before using `Vaultify`, make sure your system meets the following requirements:

Expand Down

0 comments on commit bda4a16

Please sign in to comment.