Fix branch checking

This commit is contained in:
Liam 2022-10-26 21:22:16 +01:00
parent ea241be07b
commit c17e34d9c1

@ -7,24 +7,27 @@ steps:
# Other branches # Other branches
- name: install depends - name: install depends
image: node:18 image: node:18
commands:
- npm install
when: when:
branch: branch:
exclude: exclude:
- master - master
commands:
- npm install
- name: test - name: test
image: node:18 image: node:18
commands:
- npm run lint
when: when:
branch: branch:
exclude: exclude:
- master - master
commands:
- npm run lint
# Main branches # Main branches
- name: docker - name: docker
image: plugins/docker image: plugins/docker
when:
branch:
- main
settings: settings:
username: username:
from_secret: dockerhub_username from_secret: dockerhub_username
@ -32,6 +35,3 @@ steps:
from_secret: dockerhub_password from_secret: dockerhub_password
repo: fascinated/beatsaber-overlay repo: fascinated/beatsaber-overlay
tags: latest tags: latest
when:
branch:
- main