René's URL Explorer Experiment


Title: Support setting a post hook · Issue #592 · actions/github-script · GitHub

Open Graph Title: Support setting a post hook · Issue #592 · actions/github-script

X Title: Support setting a post hook · Issue #592 · actions/github-script

Description: Is your feature request related to a problem? Please describe. With actions/github script it's not possible to setup some cleanup logic to run at the end of the job. Describe the solution you'd like A post hook is supported by node20 act...

Open Graph Description: Is your feature request related to a problem? Please describe. With actions/github script it's not possible to setup some cleanup logic to run at the end of the job. Describe the solution you'd lik...

X Description: Is your feature request related to a problem? Please describe. With actions/github script it's not possible to setup some cleanup logic to run at the end of the job. Describe the solution you&#...

Opengraph URL: https://github.com/actions/github-script/issues/592

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support setting a post hook","articleBody":"**Is your feature request related to a problem? Please describe.**\nWith actions/github script it's not possible to setup some cleanup logic to run at the end of the job.\n\n**Describe the solution you'd like**\nA `post` hook is supported by `node20` actions. Adding support for this would not be too difficult on github-script, as it's just a separate function that can be set on an additional `post` input.\n\nThe change would be fully backwards compatible and not too disruptive.\n\nUsage would look like this:\n\n```yaml\n    - name: My github script\n      uses: actions/github-script@v7\n      with:\n        script: |\n          console.log(\"Running my github script\");\n        post: |\n          console.log(\"Running cleanup logic for my github script\");\n```\n\nState sharing between both scripts would be supported out of the box by `core.saveState`, so this would be a very powerful addition.\n\nI'm willing to work on a PR for this feature in the next few days.\n\n**Describe alternatives you've considered**\n- Using an additional action with `if: always()` for cleanup, this requires putting the cleanup step at the end of the job, potentially far from the step it's cleaning after.\n- Using a node action directly: this would require duplicating parts of this project for toolkit set up.\n\n**Additional context**\n\nUse case where the need for this has come up: creating a \"check\" (`github.rest.checks.create`) at the beginning of a job, and making sure the check is marked as completed at the end (either with success or failure based on the job status)\n","author":{"url":"https://github.com/gnpar","@type":"Person","name":"gnpar"},"datePublished":"2025-04-30T11:36:11Z","url":"https://github.com/actions/github-script/issues/592"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:71d6a8e7-db53-0219-4c8f-b4d951ddb044
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9C9A:3E418A:BEF170:FB1D77:6B01C34C
html-safe-noncef0eb58551692c1bbd64926ce55b25db6fbb4d0275e0f2bacf84790e72719729d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzlBOjNFNDE4QTpCRUYxNzA6RkIxRDc3OjZCMDFDMzRDIiwidmlzaXRvcl9pZCI6IjQ0MTA0NjgyODg0NjM3NDk5NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac19dabc13cf0a10a41af027614da237060f23da87d72b06596a44b3df33efc193
hovercard-subject-tagissue:3031010603
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/github-script/592/issue_layout
twitter:imagehttps://opengraph.githubassets.com/96fe969d7acff53dd1445e06c6360e078cd31116cedee8a47ee8c1f09338b1df/actions/github-script/issues/592
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/96fe969d7acff53dd1445e06c6360e078cd31116cedee8a47ee8c1f09338b1df/actions/github-script/issues/592
og:image:altIs your feature request related to a problem? Please describe. With actions/github script it's not possible to setup some cleanup logic to run at the end of the job. Describe the solution you'd lik...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegnpar
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/actions/github-script git https://github.com/actions/github-script.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id205262760
octolytics-dimension-repository_nwoactions/github-script
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id205262760
octolytics-dimension-repository_network_root_nwoactions/github-script
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/github-script/issues/592#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F592
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F592
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fgithub-script
Reloadhttps://github.com/actions/github-script/issues/592
Reloadhttps://github.com/actions/github-script/issues/592
Reloadhttps://github.com/actions/github-script/issues/592
actionshttps://github.com/actions
github-scripthttps://github.com/actions/github-script
Codehttps://github.com/actions/github-script
Issues60 (60)https://github.com/actions/github-script/issues
Pull requests36 (36)https://github.com/actions/github-script/pulls
Discussionshttps://github.com/actions/github-script/discussions
Actionshttps://github.com/actions/github-script/actions
Security and qualityhttps://github.com/actions/github-script/security
Insightshttps://github.com/actions/github-script/insights
https://github.com/actions/github-script
New issuehttps://github.com/login?return_to=https://github.com/actions/github-script/issues/592
New issuehttps://github.com/login?return_to=https://github.com/actions/github-script/issues/592
Support setting a post hookhttps://github.com/actions/github-script/issues/592#top
https://github.com/gnpar
gnparhttps://github.com/gnpar
on Apr 30, 2025https://github.com/actions/github-script/issues/592#issue-3031010603
https://github.com/alambike
alambikehttps://github.com/alambike
on Mar 12, 2026https://github.com/actions/github-script/issues/592#issuecomment-4051047367
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/github-script/issues/592
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/github-script/issues/592
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.