From 5708d2cad94a8bd67c9d68ff5eca938b3fabecd5 Mon Sep 17 00:00:00 2001 From: gempir Date: Sat, 26 Feb 2022 13:57:27 +0100 Subject: [PATCH] switch default branch --- .github/workflows/ci.yml | 6 +++--- .github/workflows/docker-publish.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce7a526..ad2edb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: ci on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: @@ -34,7 +34,7 @@ jobs: run: go test -v . release: - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest needs: build steps: diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index bee99f2..b9b408e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -2,9 +2,9 @@ name: Docker on: push: - # Publish `master` as Docker `latest` image. + # Publish `main` as Docker `latest` image. branches: - - master + - main # Publish `v1.2.3` tags as releases. tags: @@ -68,7 +68,7 @@ jobs: [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') # Use Docker `latest` tag convention - [ "$VERSION" == "master" ] && VERSION=latest + [ "$VERSION" == "main" ] && VERSION=latest echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION