Skip to content

Build action always runs and fails when creating a repo from the template. #16

Description

@NathanielJS1541

Currently, creating a repo from this template will cause the build workflow to run on the initial commit. This isn't ideal because at that point, all that's in the repo is the template document, which isn't too useful to have stored as a release.

Moreover, the build workflow will always fail as the initial commit it builds on isn't conventional. There is already a workflow to make the initial commit conventional (added in #14), but the build workflow will already be running on the original ref by the time the initial commit is amended.

Perhaps we can check whether the commit the build workflow is running on has a parent, and only run the workflow if so?

Metadata

Metadata

Labels

🎬 actionChanges to the GitHub Actions🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions