docs(yield): define skill workflows (#289) #21
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
| # Generated by labkit (python -m labkit gen). Do not edit by hand. | |
| # Edit labs/<lab>/publish.config.json and regenerate; drift fails `labkit doctor`. | |
| name: Publish Yield projection | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "labs/22-yield/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: publish-yield-projection | |
| cancel-in-progress: false | |
| jobs: | |
| dispatch: | |
| if: github.repository == 'operatorstack/intelligence-flow' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create Operator Stack Publisher token | |
| id: app-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ vars.OPERATOR_STACK_PUBLISHER_APP_CLIENT_ID || vars.BOATSTACK_APP_CLIENT_ID }} | |
| private-key: ${{ secrets.OPERATOR_STACK_PUBLISHER_APP_PRIVATE_KEY || secrets.BOATSTACK_APP_PRIVATE_KEY }} | |
| owner: operatorstack | |
| repositories: yield | |
| permission-actions: write | |
| permission-contents: read | |
| - name: Dispatch Yield sync | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| SOURCE_COMMIT: ${{ github.sha }} | |
| shell: bash | |
| run: >- | |
| gh workflow run sync-upstream.yml | |
| --repo operatorstack/yield | |
| --ref main | |
| -f source_commit="$SOURCE_COMMIT" |