chore(main): release 2.4.0 #315
Workflow file for this run
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: Trigger Nix Flake Update | |
| on: | |
| push: | |
| branches: | |
| - main | |
| # Also trigger on successful PR merges | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - main | |
| jobs: | |
| trigger-nix: | |
| # Only run on push to main OR on merged PRs | |
| if: github.event_name == 'push' || (github.event.pull_request.merged == true) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # Minimal permissions | |
| steps: | |
| - name: Trigger nix-ai flake update | |
| run: | | |
| gh api repos/JacobPEvans/nix-ai/dispatches \ | |
| --method POST \ | |
| --field event_type='upstream-repo-updated' \ | |
| --field client_payload[flake_input_name]='jacobpevans-cc-plugins' \ | |
| --field client_payload[source_repo]="$SOURCE_REPO" \ | |
| --field client_payload[source_ref]="$SOURCE_REF" \ | |
| --field client_payload[commit_sha]="$COMMIT_SHA" | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_PAT_WORKFLOW_DISPATCH }} | |
| SOURCE_REPO: ${{ github.repository }} | |
| SOURCE_REF: ${{ github.ref }} | |
| COMMIT_SHA: ${{ github.sha }} | |
| - name: Log dispatch | |
| run: | | |
| echo "✅ Triggered nix-ai flake update workflow" | |
| echo "Source: $SOURCE_REPO" | |
| echo "Commit: $COMMIT_SHA" | |
| env: | |
| SOURCE_REPO: ${{ github.repository }} | |
| COMMIT_SHA: ${{ github.sha }} |