JetBrains / intellij-platform-plugin-template

Template repository for creating plugins for IntelliJ Platform
Apache License 2.0
3.04k stars 614 forks source link

Duplicate workflow on initialization #366

Closed meiMingle closed 1 year ago

meiMingle commented 1 year ago

In the past, only two workflows were generated. and now it's four https://github.com/meiMingle/mybatis-elasticsearch-log/actions

Konafets commented 1 year ago

@meiMingle You pushing to main without pulling the changes first.

Background: When you use this repository as a starting point for your project there is a cleanup action running which removes template related stuff from the repo, which is not needed in a project repository. Those changes will become the "Initial commit" as you can see in your repository. After that you need to pull those changes to your local branch, which you not did.

meiMingle commented 1 year ago

@Konafets I did not do anything after clicking the Create repository from template button, your description does not match the actual situation

Konafets commented 1 year ago

@meiMingle Sorry, I was wrong then.

meiMingle commented 1 year ago

I tried again, same result https://github.com/meiMingle/mybatislog/actions

hsz commented 1 year ago

This is an issue on GitHub side — all projects created from template repository have workflows running twice.

hsz commented 1 year ago

Please see: https://github.com/hsz/github-actions-runs-workflow-twice-for-template-repository

hsz commented 1 year ago

https://github.com/actions/runner/issues/2550

psukhovii commented 1 year ago

This is an issue on GitHub side - the first commit to a GitHub repository with a on: push: event workflow results in that action being executed twice.

hsz commented 1 year ago

Seems like this issue us already gone.