Update Code Coverage documentation #28
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Update Submodule Reference in PropertyGridHelpers | |
| on: | |
| push: | |
| branches: | |
| - main # Trigger on changes to the 'main' branch of PropertyGridHelpers.CodeCoverage | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| update-main-repo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Submodule Repository | |
| uses: actions/checkout@v4 | |
| - name: Clone Main Repository | |
| run: | | |
| # Clone the PropertyGridHelpers repository | |
| git clone --depth 1 https://github.com/dparvin/PropertyGridHelpers.git main-repo | |
| cd main-repo | |
| git config user.name "GitHub Actions" | |
| git config user.email "[email protected]" | |
| - name: Initialize and Update Submodule | |
| run: | | |
| cd main-repo | |
| # Initialize the submodule | |
| git submodule update --init Coverage | |
| # Ensure the submodule points to the latest commit in the submodule repository | |
| git submodule update --remote --merge Coverage | |
| - name: Commit and Push Updated Submodule Reference | |
| run: | | |
| cd main-repo | |
| git add Coverage | |
| git commit -m "Update submodule reference to latest commit in PropertyGridHelpers.CodeCoverage" || echo "No changes to commit" | |
| git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/dparvin/PropertyGridHelpers.git master | |
| # Create and push a 'no-build' tag | |
| git tag no-build | |
| git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/dparvin/PropertyGridHelpers.git no-build |