Skip to content

Commit a64e656

Browse files
committed
fix: handle fork workflow_dispatch repo context for cross-repo issue lookups
1 parent 640f7f2 commit a64e656

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/strands-command.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
fetch-depth: 0
7171

7272
- name: Add strands-running label
73+
continue-on-error: true
7374
uses: actions/github-script@v8
7475
with:
7576
script: |
@@ -86,6 +87,10 @@ jobs:
8687
uses: actions/github-script@v8
8788
with:
8889
script: |
90+
// When dispatched from a fork, point API calls at the upstream repo
91+
if (context.eventName === 'workflow_dispatch' && context.repo.owner !== 'aws') {
92+
context.repo = { owner: 'aws', repo: 'agentcore-cli' };
93+
}
8994
const processInputs = require('./.github/scripts/javascript/process-inputs.cjs');
9095
const inputs = {
9196
issue_id: '${{ inputs.issue_id }}',

0 commit comments

Comments
 (0)