Skip to content

Commit c85cc76

Browse files
ci: Use main branch name in workflow configurations (#64)
1 parent 17dee71 commit c85cc76

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ name: "CI"
66

77
on:
88
push:
9-
branches: ["master"]
9+
branches: ["main"]
1010
tags: ["*"]
1111
pull_request:
12-
branches: ["master"]
12+
branches: ["main"]
1313

1414
jobs:
1515
build:
@@ -56,7 +56,7 @@ jobs:
5656
deploy:
5757
needs: ["build"]
5858
name: "Push Docker image to the Docker Hub"
59-
if: "${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}"
59+
if: "${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}"
6060

6161
runs-on: "ubuntu-latest"
6262

.github/workflows/release_tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: "actions/checkout@v3.0.2"
3131
with:
32-
ref: "master"
32+
ref: "main"
3333
token: "${{ steps.token.outputs.token }}"
3434

3535
- name: "Install Python"

0 commit comments

Comments
 (0)