ci: rename default branch from master to main

This commit is contained in:
zimbatm
2025-12-02 16:41:38 +01:00
parent 87459791ee
commit 10b83cdcf1
5 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ name: Nix
on:
push:
branches:
- master
- main
pull_request:
workflow_dispatch:
schedule:

View File

@@ -25,8 +25,8 @@ banner() {
cd "$(dirname "$0")"
if [[ $(git rev-parse --abbrev-ref HEAD) != master ]]; then
banner "Skipping push on non-master branch"
if [[ $(git rev-parse --abbrev-ref HEAD) != main ]]; then
banner "Skipping push on non-main branch"
exit
fi

4
ci.sh
View File

@@ -33,8 +33,8 @@ nix-build \
--option sandbox true \
--argstr system "$system_name"
if [[ $(git rev-parse --abbrev-ref HEAD) != master ]]; then
banner "Skipping push on non-master branch"
if [[ $(git rev-parse --abbrev-ref HEAD) != main ]]; then
banner "Skipping push on non-main branch"
exit
fi

View File

@@ -130,7 +130,7 @@ let
];
Labels = {
# https://github.com/microscaling/microscaling/blob/55a2d7b91ce7513e07f8b1fd91bbed8df59aed5a/Dockerfile#L22-L33
"org.label-schema.vcs-ref" = "master";
"org.label-schema.vcs-ref" = "main";
"org.label-schema.vcs-url" = "https://github.com/nix-community/docker-nixpkgs";
};
};

View File

@@ -28,7 +28,7 @@ let
];
Labels = {
# https://github.com/microscaling/microscaling/blob/55a2d7b91ce7513e07f8b1fd91bbed8df59aed5a/Dockerfile#L22-L33
"org.label-schema.vcs-ref" = "master";
"org.label-schema.vcs-ref" = "main";
"org.label-schema.vcs-url" = "https://github.com/nix-community/docker-nixpkgs";
};
};