This repository contains the web portfolio, including an automated process to synchronize the docs directory from the Angular Portfolio Repository.
- Purpose: Automatically sync the
docsfolder from Angular Portfolio (repo1) to this repository (repo2). - Automation Tool: Uses GitHub Actions for automation.
-
Trigger Events:
- Push Event: When changes are made to the
docsdirectory inrepo1. - Scheduled Job: Runs on the 17th of every month.
- Push Event: When changes are made to the
-
Dispatch Workflow (in
repo1):- Detects changes in the
docsdirectory. - Sends a repository dispatch event to
repo2.
- Detects changes in the
-
Sync Workflow (in
repo2):- Listens for dispatch events from
repo1. - Clones the
docsdirectory fromrepo1. - Syncs the
docsdirectory withrepo2. - Commits and pushes any changes to
repo2.
- Listens for dispatch events from
- Secrets Used:
REPO1_DISPATCH_TOKENinrepo1: Personal Access Token (PAT) for dispatching events.REPO1_URLinrepo2: URL ofrepo1to clone the repository.REPO2_TOKENinrepo2: PAT for authentication to push changes.
- Navigate to the Actions tab in
repo1. - Select the "Dispatch Docs Changes to Deploy Repository" workflow.
- Click "Run workflow" to manually trigger the synchronization process.
This setup ensures that the documentation in repo2 remains up-to-date with any changes made in repo1, both automatically and on a schedule.