We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a64e656 commit 3be5a74Copy full SHA for 3be5a74
.github/workflows/strands-command.yml
@@ -87,9 +87,11 @@ jobs:
87
uses: actions/github-script@v8
88
with:
89
script: |
90
- // When dispatched from a fork, point API calls at the upstream repo
+ // When dispatched from a fork, override the repo getter to point at upstream
91
if (context.eventName === 'workflow_dispatch' && context.repo.owner !== 'aws') {
92
- context.repo = { owner: 'aws', repo: 'agentcore-cli' };
+ Object.defineProperty(context, 'repo', {
93
+ get: () => ({ owner: 'aws', repo: 'agentcore-cli' })
94
+ });
95
}
96
const processInputs = require('./.github/scripts/javascript/process-inputs.cjs');
97
const inputs = {
0 commit comments