Title: `github.rest.git.createRef` does not trigger other workflows · Issue #491 · actions/github-script · GitHub
Open Graph Title: `github.rest.git.createRef` does not trigger other workflows · Issue #491 · actions/github-script
X Title: `github.rest.git.createRef` does not trigger other workflows · Issue #491 · actions/github-script
Description: Describe the bug When pushing a new tag with github.rest.git.createRef on a scheduled job, the tag is successfully created but other workflows that should be triggered by a new tag are not. To Reproduce I have a scheduled job like this: ...
Open Graph Description: Describe the bug When pushing a new tag with github.rest.git.createRef on a scheduled job, the tag is successfully created but other workflows that should be triggered by a new tag are not. To Repr...
X Description: Describe the bug When pushing a new tag with github.rest.git.createRef on a scheduled job, the tag is successfully created but other workflows that should be triggered by a new tag are not. To Repr...
Opengraph URL: https://github.com/actions/github-script/issues/491
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`github.rest.git.createRef` does not trigger other workflows","articleBody":"**Describe the bug**\r\nWhen pushing a new tag with `github.rest.git.createRef` on a scheduled job, the tag is successfully created but other workflows that should be triggered by a new tag are not.\r\n\r\n**To Reproduce**\r\nI have a scheduled job like this:\r\n```\r\non:\r\n schedule:\r\n - cron: \"49 5 * * *\"\r\n\r\njobs:\r\n find_releases:\r\n name: Find releases\r\n runs-on: ubuntu-latest\r\n\r\n steps:\r\n\r\n - uses: actions/github-script@v7\r\n with:\r\n script: |\r\n // ...\r\n const result_ref = await github.rest.git.createRef({\r\n owner: context.repo.owner,\r\n repo: context.repo.repo,\r\n ref: \"refs/tags/\" + \"v0.0.1\",\r\n sha: context.sha\r\n })\r\n```\r\n\r\nAnd a build job like this:\r\n```\r\non: push\r\n\r\njobs:\r\n build_wheels:\r\n steps:\r\n - uses: actions/checkout@v4\r\n - \u003cbuild step\u003e\r\n\r\n publish:\r\n runs-on: ubuntu-latest\r\n if: github.event_name == 'push' \u0026\u0026 startsWith(github.event.ref, 'refs/tags/v')\r\n steps:\r\n - \u003cpublish step\u003e\r\n```\r\n\r\n**Expected behavior**\r\nI would expect the tag to be created on the schedule, after which a build and a corresponding publish is triggered.\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: Github Workflow\r\n - Version v7\r\n\r\n---\r\n\r\nThe scheduled workflow run from this morning: https://github.com/RobertoRoos/protobuf-protoc-bin/actions/runs/11249037881/job/31275208574 \r\nAll workflows for that version: https://github.com/RobertoRoos/protobuf-protoc-bin/tree/c737e636f6fbfc626cbcb207d77af7713db50bda/.github/workflows \r\n","author":{"url":"https://github.com/RobertoRoos","@type":"Person","name":"RobertoRoos"},"datePublished":"2024-10-09T06:37:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/491/github-script/issues/491"}
| 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:52d581a3-d255-c06c-17ef-6d866c980da8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C446:3F60C6:83149E3:B8E0D74:6A50C68C |
| html-safe-nonce | ed4a1bcaaa86bcc23fff806b95805f2b65d5321acdd649ca46b74695a117aee5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDQ2OjNGNjBDNjo4MzE0OUUzOkI4RTBENzQ6NkE1MEM2OEMiLCJ2aXNpdG9yX2lkIjoiMTQ3ODY3MTk4NjY5NTY1MzAwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 387d78d355d5a8f569f2000e8d5df1ddd93b7e45447e9fb2c736d107e7b30cb0 |
| hovercard-subject-tag | issue:2574909381 |
| github-keyboard-shortcuts | repository,issues,actions,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/actions/github-script/491/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8cfb5c4c56c61a54426f4b532be2720be765142bc3a91dd32c8de601e3abf807/actions/github-script/issues/491 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8cfb5c4c56c61a54426f4b532be2720be765142bc3a91dd32c8de601e3abf807/actions/github-script/issues/491 |
| og:image:alt | Describe the bug When pushing a new tag with github.rest.git.createRef on a scheduled job, the tag is successfully created but other workflows that should be triggered by a new tag are not. To Repr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RobertoRoos |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/github-script git https://github.com/actions/github-script.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 205262760 |
| octolytics-dimension-repository_nwo | actions/github-script |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205262760 |
| octolytics-dimension-repository_network_root_nwo | actions/github-script |
| 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 | 08e79d53fc070870d5b168356afebb1e286a2ffe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width