Only build for main branches to fix duplicate actions with dependabot

This commit is contained in:
games647
2021-06-29 12:55:37 +02:00
parent ccdc455ce9
commit cde045d6fd
2 changed files with 35 additions and 30 deletions

View File

@ -4,11 +4,15 @@
# Human readable name in the actions tab
name: Java CI
# Build on every push and pull request regardless of the branch
# Build on every pull request regardless of the branch
# Wiki: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on:
- push
- pull_request
push:
branches:
- main
pull_request:
branches:
- main
jobs:
# job id

View File

@ -74,7 +74,8 @@ public class NameCheckTask extends JoinManagement<Player, CommandSender, Protoco
}
@Override
public FastLoginPreLoginEvent callFastLoginPreLoginEvent(String username, ProtocolLibLoginSource source, StoredProfile profile) {
public FastLoginPreLoginEvent callFastLoginPreLoginEvent(String username, ProtocolLibLoginSource source,
StoredProfile profile) {
BukkitFastLoginPreLoginEvent event = new BukkitFastLoginPreLoginEvent(username, source, profile);
plugin.getServer().getPluginManager().callEvent(event);
return event;