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 3, 2024
1 parent 3b4b0b7 commit f1e58ed
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/sync-vaultify-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ jobs:
run: |
# Clone Azure DevOps Repo
echo "Cloning the Azure DevOps repository..."
REPO_URL="https://buungroupmain@dev.azure.com/buungroupmain/devops-blueprints/_git/vaultify-docs"
PAT=${{ secrets.AZURE_DEVOPS_PAT }}
REPO_URL="dev.azure.com/buungroupmain/devops-blueprints/_git/vaultify-docs"
# Using the PAT in the URL for cloning
if ! git clone https://${PAT}@${REPO_URL#https://} vaultify-docs; then
# Construct the URL with the PAT
CLONE_URL="https://$PAT@$REPO_URL"
# Clone the repository using the constructed URL
if ! git clone "$CLONE_URL" vaultify-docs; then
echo "Failed to clone Azure DevOps repository. Exiting."
exit 1
fi
cd vaultify-docs || exit
Expand Down

0 comments on commit f1e58ed

Please sign in to comment.