Skip to content

Commit

Permalink
Disable refreshing cache entries from workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed Dec 22, 2023
1 parent 82de5e8 commit e1e1b76
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/tugboat-refresh-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,5 @@ jobs:
if (cacheKeys.includes(`${{ runner.os }}-tugboat-preview-id-pr-${pr}`)) {
console.log(`Need to refresh: ${pr}`)
toRefresh.push(pr)
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'tugboat-refresh-cache-dispatch.yml',
ref: `refs/pull/${pr}/merge`,
inputs: {
key: `${{ runner.os }}-tugboat-preview-id-pr-${pr}`
},
})
}
}

0 comments on commit e1e1b76

Please sign in to comment.