Title: 馃┕ [Patch]: Action-Test workflow cannot be tested via schedule or workflow_dispatch events 路 Issue #268 路 PSModule/Process-PSModule 路 GitHub
Open Graph Title: 馃┕ [Patch]: Action-Test workflow cannot be tested via schedule or workflow_dispatch events 路 Issue #268 路 PSModule/Process-PSModule
X Title: 馃┕ [Patch]: Action-Test workflow cannot be tested via schedule or workflow_dispatch events 路 Issue #268 路 PSModule/Process-PSModule
Description: Problem The Action-Test workflow, which uses the Publish-PSModule action, cannot be reliably triggered or tested using schedule or workflow_dispatch events. When triggered by these events, the workflow fails with the following error from...
Open Graph Description: Problem The Action-Test workflow, which uses the Publish-PSModule action, cannot be reliably triggered or tested using schedule or workflow_dispatch events. When triggered by these events, the work...
X Description: Problem The Action-Test workflow, which uses the Publish-PSModule action, cannot be reliably triggered or tested using schedule or workflow_dispatch events. When triggered by these events, the work...
Opengraph URL: https://github.com/PSModule/Process-PSModule/issues/268
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"馃┕ [Patch]: Action-Test workflow cannot be tested via schedule or workflow_dispatch events","articleBody":"## Problem\n\nThe Action-Test workflow, which uses the Publish-PSModule action, cannot be reliably triggered or tested using `schedule` or `workflow_dispatch` events. When triggered by these events, the workflow fails with the following error from the init.ps1 script:\n\n```\nException: /home/runner/work/Publish-PSModule/Publish-PSModule/scripts/init.ps1:82\nLine |\n 82 | throw 'GitHub event does not contain pull_request data. This 鈥n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n | GitHub event does not contain pull_request data. This script must be run\n | from a pull_request event.\n```\n\n## Root Cause\n\nThe script expects the workflow to be triggered by a `pull_request` event and fails when event context is missing, as with scheduled or manual (workflow_dispatch) runs.\n\n## Expected Improvement\n\n- Refactor the workflow and/or the Publish-PSModule action to allow tests to be executed using schedule or workflow_dispatch events, e. g.:\n - Detect event type and skip PR-only logic when appropriate\n - Fall back to mock PR data for testing\n - Update docs to clarify which events can be used for testing\n\n## References\n\nThis issue affects scheduled runs in the Action-Test workflow that use the Publish-PSModule action.\n\n---\nJob context: [Publish-PSModule/scripts/init.ps1:82 (ref)](ref)\n\n---\nPlease investigate and propose a solution to make testability possible from all relevant workflow triggers.","author":{"url":"https://github.com/MariusStorhaug","@type":"Person","name":"MariusStorhaug"},"datePublished":"2026-01-22T14:19:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/268/Process-PSModule/issues/268"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c13234b8-3f41-4afe-23ce-dfbdb2f8e1a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85DC:33E81A:65FB85:8FC022:697B7A60 |
| html-safe-nonce | 6f97f5023605529357849b689d26775ecc4b77a8cb3aafde80f116239edd0e87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NURDOjMzRTgxQTo2NUZCODU6OEZDMDIyOjY5N0I3QTYwIiwidmlzaXRvcl9pZCI6IjYzNzY4NTc2MzM5OTQ1Mzc1NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0a82c8127ac9f05fde51e266b7d31b64b9cb621f3e0cf337b136c147398a57f2 |
| hovercard-subject-tag | issue:3843158842 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PSModule/Process-PSModule/268/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b92279789e848ac910dd8f68467522b85b8ec53b4eab8f1cfb53ac965af1ed6/PSModule/Process-PSModule/issues/268 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b92279789e848ac910dd8f68467522b85b8ec53b4eab8f1cfb53ac965af1ed6/PSModule/Process-PSModule/issues/268 |
| og:image:alt | Problem The Action-Test workflow, which uses the Publish-PSModule action, cannot be reliably triggered or tested using schedule or workflow_dispatch events. When triggered by these events, the work... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MariusStorhaug |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26ef504c9f5eb2ac26b53c0437f934bbe4c0464979d7386917bd32d9fe70fc7a |
| turbo-cache-control | no-preview |
| go-import | github.com/PSModule/Process-PSModule git https://github.com/PSModule/Process-PSModule.git |
| octolytics-dimension-user_id | 142951047 |
| octolytics-dimension-user_login | PSModule |
| octolytics-dimension-repository_id | 706356420 |
| octolytics-dimension-repository_nwo | PSModule/Process-PSModule |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 706356420 |
| octolytics-dimension-repository_network_root_nwo | PSModule/Process-PSModule |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cea9b2b812b4d84ebc94c8a8bd97e2e99a2c0b48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width