René's URL Explorer Experiment


Title: PR creation does not trigger workflow · Issue #484 · actions/github-script · GitHub

Open Graph Title: PR creation does not trigger workflow · Issue #484 · actions/github-script

X Title: PR creation does not trigger workflow · Issue #484 · actions/github-script

Description: Describe the bug I want to automate the creation of a PR to release a Python package with a "release_pr" workflow triggered by the push of the underlying branch, as follows (full workflow: release_pr.yml): name: release_pr on: push: # Wh...

Open Graph Description: Describe the bug I want to automate the creation of a PR to release a Python package with a "release_pr" workflow triggered by the push of the underlying branch, as follows (full workflow: release_...

X Description: Describe the bug I want to automate the creation of a PR to release a Python package with a "release_pr" workflow triggered by the push of the underlying branch, as follows (full workflow...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PR creation does not trigger workflow","articleBody":"**Describe the bug**\r\n\r\nI want to automate the creation of a PR to release a Python package with a \"release_pr\" workflow triggered by the push of the underlying branch, as follows (full workflow: [release_pr.yml](https://github.com/zhmcclient/python-zhmcclient/blob/master/.github/workflows/release_pr.yml)):\r\n\r\n```\r\nname: release_pr\r\n\r\non:\r\n  push:  # When pushing a release branch\r\n    branches:\r\n    # Release branch formats:\r\n    # release_M.N.U - targets a default branch (master for M.N.0, stable_M.N otherwise)\r\n    # release_M.N.0_BRANCH - targets the specified branch\r\n    - release_*\r\n\r\njobs:\r\n  release_pr:\r\n    name: Create the release PR\r\n    runs-on: ubuntu-latest\r\n    steps:\r\n\r\n    . . .\r\n\r\n    - name: Create PR on Github for the pushed release branch\r\n      uses: actions/github-script@v7\r\n      with:\r\n        script: |\r\n          github.rest.pulls.create({\r\n            owner: context.repo.owner,\r\n            repo: context.repo.repo,\r\n            title: \"Release ${{ steps.set-version.outputs.result }}\",\r\n            body: \"Merging this PR will trigger the publishing to PyPI.\",\r\n            head: \"${{ github.ref_name }}\",\r\n            base: \"${{ steps.set-target-branch.outputs.result }}\",\r\n          });\r\n      env:\r\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\r\n```\r\n\r\nThe PR gets created successfully by this workflow, e.g.: https://github.com/zhmcclient/python-zhmcclient/pull/1641\r\n\r\nThere is a second workflow \"test\" that is set to trigger when a PR is created. However, that second workflow is not actually triggered when the PR is created using actions/github-script (but it is triggered when manually creating a PR).\r\n\r\nThe trigger section of the \"test\" workflow is as follows (full workflow: [test.yml](https://github.com/zhmcclient/python-zhmcclient/blob/master/.github/workflows/test.yml))\r\n\r\n```\r\nname: test\r\n\r\non:\r\n  schedule:\r\n    # The schedule event always (and only) runs on the master branch.\r\n    - # cron (in UTC): minute hour day_of_month month day_of_week\r\n      cron: '00 22 * * SAT'\r\n  pull_request:  # When creating a PR targeting these branches\r\n    branches:\r\n    - master\r\n    - stable_*\r\n  push:  # When merging a PR targeting these branches (direct push is disabled)\r\n    branches:\r\n    - master\r\n    - stable_*\r\n\r\njobs:\r\n  . . .\r\n```\r\n\r\nSince the created release PR targets either the \"master\" or \"stable_M.N\" branch, the \"pull_request\" trigger should trigger when a PR is created through the actions/github-script code (just as it does when such a PR is created manually), but it is not actually triggered.\r\n\r\nDo you have an idea why the \"test\" workflow it is not triggered through the actions/github-script code?\r\n\r\nWhat is different in the way the actions/github-script code creates the PR compared to creating the PR manually, that would influence the subsequent triggering of actions?\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior (requires push permissions to the repo):\r\n1. Clone the repo https://github.com/zhmcclient/python-zhmcclient locally \r\n2. Create a virtual Python environment using Python 3.8 or higher and have that env active\r\n3. Go to the main directory of the local repo clone\r\n3. Run \"make develop\" - this will install necessary Python packages\r\n4. Run \"VERSION=1.18.0 make release_branch\" - this will create a release branch and push that branch, which triggers the \"release_pr\" workflow.\r\n5. Look at the \"Actions\" tab to verify that the \"test\" workflow was not run.\r\n\r\n**Expected behavior**\r\n\r\nPR creation through the actions/github-script code should have the same Actions trigger behavior as creating a PR manually through the Github GUI.\r\n\r\n**Screenshots**\r\nN/A\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: MacOS 14.6.1\r\n - Browser: Firefox\r\n \r\n**Smartphone (please complete the following information):**\r\nN/A\r\n\r\n**Additional context**\r\nN/A","author":{"url":"https://github.com/andy-maier","@type":"Person","name":"andy-maier"},"datePublished":"2024-09-04T08:42:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/484/github-script/issues/484"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:29f26ec5-5356-d904-21bf-d715547edda1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA808:73358:842ECC:B9B449:6A510601
html-safe-noncea28e83e1b47141b547665246c25f51b6cf908ae2e1b5719f64cb26f83dfe5a0e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODA4OjczMzU4Ojg0MkVDQzpCOUI0NDk6NkE1MTA2MDEiLCJ2aXNpdG9yX2lkIjoiMzIxODY3Mjk0NzgyMzI2MjczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace391b75af5f056501c999e5ac850d3c08904035b8b5bbb1dcd7c8daa425b66f9
hovercard-subject-tagissue:2504683548
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/484/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6e516d11a44a420ac21486301875b1386b2876f41b7be5a90db56086d62e9847/actions/github-script/issues/484
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6e516d11a44a420ac21486301875b1386b2876f41b7be5a90db56086d62e9847/actions/github-script/issues/484
og:image:altDescribe the bug I want to automate the creation of a PR to release a Python package with a "release_pr" workflow triggered by the push of the underlying branch, as follows (full workflow: release_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandy-maier
hostnamegithub.com
expected-hostnamegithub.com
None38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12
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
release90441ea9b98e7491aa6ebcd135fccce4e2396f48
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/github-script/issues/484#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F484
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F484
Sign up https://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/484
Reloadhttps://github.com/actions/github-script/issues/484
Reloadhttps://github.com/actions/github-script/issues/484
Please reload this pagehttps://github.com/actions/github-script/issues/484
actions https://github.com/actions
github-scripthttps://github.com/actions/github-script
Notifications https://github.com/login?return_to=%2Factions%2Fgithub-script
Fork 572 https://github.com/login?return_to=%2Factions%2Fgithub-script
Star 5k https://github.com/login?return_to=%2Factions%2Fgithub-script
Code https://github.com/actions/github-script
Issues 54 https://github.com/actions/github-script/issues
Pull requests 35 https://github.com/actions/github-script/pulls
Discussions https://github.com/actions/github-script/discussions
Actions https://github.com/actions/github-script/actions
Security and quality 0 https://github.com/actions/github-script/security
Insights https://github.com/actions/github-script/pulse
Code https://github.com/actions/github-script
Issues https://github.com/actions/github-script/issues
Pull requests https://github.com/actions/github-script/pulls
Discussions https://github.com/actions/github-script/discussions
Actions https://github.com/actions/github-script/actions
Security and quality https://github.com/actions/github-script/security
Insights https://github.com/actions/github-script/pulse
PR creation does not trigger workflowhttps://github.com/actions/github-script/issues/484#top
https://github.com/joshmgross
questionA question on how to use this actionhttps://github.com/actions/github-script/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/andy-maier
andy-maierhttps://github.com/andy-maier
on Sep 4, 2024https://github.com/actions/github-script/issues/484#issue-2504683548
release_pr.ymlhttps://github.com/zhmcclient/python-zhmcclient/blob/master/.github/workflows/release_pr.yml
zhmcclient/python-zhmcclient#1641https://github.com/zhmcclient/python-zhmcclient/pull/1641
test.ymlhttps://github.com/zhmcclient/python-zhmcclient/blob/master/.github/workflows/test.yml
https://github.com/zhmcclient/python-zhmcclienthttps://github.com/zhmcclient/python-zhmcclient
joshmgrosshttps://github.com/joshmgross
questionA question on how to use this actionhttps://github.com/actions/github-script/issues?q=state%3Aopen%20label%3A%22question%22
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.