Add cross-repository workflow integration and connectivity #11
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
| # This is a workflow to manage builds and connect to other repositories | |
| name: CI | |
| # Controls when the action will run | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| # Allow manual workflow dispatch | |
| workflow_dispatch: | |
| inputs: | |
| target_repo: | |
| description: 'Target repository to notify (optional)' | |
| required: false | |
| type: choice | |
| options: | |
| - 'none' | |
| - 'Web3AI' | |
| - 'gatsby-starter-blog' | |
| - 'Time-Machines-Builders-' | |
| - 'AI-Time-Machines' | |
| # Allow this workflow to be triggered from other repositories | |
| repository_dispatch: | |
| types: [trigger-ci] | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| # This workflow contains a single job called "build" | |
| build: | |
| # The type of runner that the job will run on | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| # Steps represent a sequence of tasks that will be executed as part of the job | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - uses: actions/checkout@v4 | |
| # Runs a single command using the runners shell | |
| - name: Run a one-line script | |
| run: echo Hello, world! | |
| # Runs a set of commands using the runners shell | |
| - name: Run a multi-line script | |
| run: | | |
| echo Add other actions to build, | |
| echo test, and deploy your project. | |
| # Display connected repositories | |
| - name: Show Connected Repositories | |
| run: | | |
| echo "===================================" | |
| echo "Connected Repositories Status" | |
| echo "===================================" | |
| echo "✓ lippytm/Transparency-Logic-Time-Machine-Bots- (this repo)" | |
| echo "✓ lippytm/Web3AI" | |
| echo "✓ lippytm/gatsby-starter-blog" | |
| echo "✓ lippytm/Time-Machines-Builders-" | |
| echo "✓ lippytm/AI-Time-Machines" | |
| echo "===================================" | |
| # Job to check status of connected repositories | |
| check-connected-repos: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| repo: | |
| - 'Web3AI' | |
| - 'gatsby-starter-blog' | |
| - 'Time-Machines-Builders-' | |
| - 'AI-Time-Machines' | |
| steps: | |
| - name: Check repository status | |
| run: | | |
| echo "Checking status of lippytm/${{ matrix.repo }}" | |
| echo "Repository: https://github.com/lippytm/${{ matrix.repo }}" | |
| echo "This job monitors connectivity with connected repositories" |