Create From Template Initial Workflow Fails with paths-ignore #199933
-
🏷️ Discussion TypeBug 💬 Feature/Topic AreaWorkflow Configuration Discussion DetailsProblemWhen creating a new repo from a template that contains a workflow with This is new behavior (introduced within the last week), and fully reproducible. Screenshot 1
Screenshot 2
Workflow example: # This workflow's initial run fails in the new repo
name: CI
on:
push:
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6If paths-ignore is omitted, the workflow doesn't fail. Screenshot 3
Screenshot 4
Workflow example: # This workflow's initial run succeeds in new repo
name: CI
on:
push:
workflow_dispatch:
jobs:
debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6Additional DetailsThis is only a problem when creating a repo from a template, within an organization:
If creating a new repository from a template with the destination being a personal account, the problem does not occur:
Working ExamplesI've created a new sandbox organization (to rule out permissions issues), with some repository templates to demo this behavior.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Thank you for the detailed investigation and reproducible examples. The fact that you've narrowed it down to:
is extremely helpful. Based on the behavior you've described, this does not appear to be a workflow syntax issue, since the same workflow:
This suggests the problem may be related to how the initial workflow run is evaluated during repository creation from a template, specifically when path filtering is involved. A few additional tests that may help further isolate the issue:
Given that this behavior reportedly started within the last week and is fully reproducible, it does seem consistent with a platform regression rather than a repository configuration problem. Hopefully a GitHub team member can take a look at the interaction between template repository provisioning and Thanks again for providing such clear reproduction steps—they make this issue much easier to investigate. |
Beta Was this translation helpful? Give feedback.
-
|
Since the initial creation of template-test-01 last night (link is the initial state of ci.yaml), GitHub has introduced additional breaking regressions. Now, creating an identical repo called template-test-05 produces the same workflow failure I identified above on initial repo create (not creating from a template, just creating a repo manually). Last night, this behavior was only happening in the situation I described when creating from a template (you can see the timing and status of the initial commit workflow), however now the behavior happens when creating a new repo manually. In regards to trying nested paths with In regards to trying We are witnessing BREAKING regressions actively taking place. GitHub, PLEASE address this issue immediately. |
Beta Was this translation helpful? Give feedback.






I disabled the new behavior for
stairwaytowonderlandas well. There's no docs yet, but effectively we're trying to improve the performance when generating filters for filtered workflows, which has caused problems for repos with exceptionally large histories. We fail open when we can't generate a diff to ensure that workflows run, but this leads to running more than intended sometimes - see the note in our existing docs in this section. We will be updating the docs when we have all the wrinkles like this ironed out though 👍