Update CI master -> main

This commit is contained in:
Shaun Eccles-Smith 2022-07-02 11:31:33 +10:00
parent f3a6a5dbca
commit c73b9e7849
3 changed files with 7 additions and 10 deletions

View File

@ -3,12 +3,11 @@ name: CI Linting
on:
push:
branches:
- master
- dev
- main
pull_request:
branches:
- master
- dev
- main
env:
CACHE_VERSION: 1

View File

@ -3,14 +3,12 @@ name: CodeQL Analysis
on:
push:
branches:
- master
- dev
- main
paths-ignore:
- '.*/**'
pull_request:
branches:
- master
- dev
- main
paths-ignore:
- '.*/**'
schedule:

View File

@ -48,8 +48,8 @@ def main():
current_branch = execute_command("git rev-parse --abbrev-ref HEAD")
if current_branch != "dev": # Temporary sanity check
print("Releases may only be pushed from the dev branch at this time.")
if current_branch != "master":
print("Releases must be pushed from the master branch.")
if current_branch != "main":
print("Releases must be pushed from the main branch.")
return
current_commit = execute_command("git rev-parse HEAD")