Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Github Action pushes all branches to FTP server, not just main #6

Closed
BeepBot99 opened this issue Jan 16, 2024 · 4 comments
Closed

Github Action pushes all branches to FTP server, not just main #6

BeepBot99 opened this issue Jan 16, 2024 · 4 comments
Assignees

Comments

@BeepBot99
Copy link
Member

This is a really important problem and needs to be fixed immediately. If you are testing something in another branch, when you commit it, it will push that branch to the website.

@BeepBot99
Copy link
Member Author

BeepBot99 commented Jan 16, 2024

This has been fixed but still needs testing to ensure that it has worked.

@Mesure73L
Copy link
Collaborator

Just checking, is this supposed to happen?
image

@BeepBot99
Copy link
Member Author

No, that is not supposed to happen.
You made the commits in main, so it should have gone through.

@BeepBot99
Copy link
Member Author

It has been fixed.

Explanation

I copied the code for preventing it in all other branches from StackOverflow. Using git on desktop, the default name for the main branch is master. However, on GitHub, it is main. The code I used prevented the action from running in all other branches than master, which doesn't exist. What I wanted was to prevent it from running in all branches other than main. I have changed and tested it. It is now working as intended.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants