From 362d848f98ec00085325c4a65a38292305e6faad Mon Sep 17 00:00:00 2001 From: Mohammad Yosefpor Date: Tue, 29 Jun 2021 18:28:44 +0430 Subject: [PATCH] chore: rename branch in workflows --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/docker-publish.yml | 6 +++--- .github/workflows/go-test.yml | 25 ------------------------- .github/workflows/go.yml | 4 ++-- 4 files changed, 8 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/go-test.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c02b231..44c1be4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ main ] + branches: [ master ] pull_request: # The branches below must be a subset of the branches above - branches: [ main ] + branches: [ master ] schedule: - cron: '41 10 * * 0' @@ -45,7 +45,7 @@ jobs: # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main + # queries: ./path/to/local/query, your-org/your-repo/queries@master # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a0ab754..7d66e79 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -2,9 +2,9 @@ name: Docker on: push: - # Publish `main` as Docker `latest` image. + # Publish `master` as Docker `latest` image. branches: - - main + - master # Publish `v1.2.3` tags as releases. tags: @@ -71,7 +71,7 @@ jobs: [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') # Use Docker `latest` tag convention - [ "$VERSION" == "main" ] && VERSION=latest + [ "$VERSION" == "master" ] && VERSION=latest echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml deleted file mode 100644 index a4021c0..0000000 --- a/.github/workflows/go-test.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Go - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.16 - - - name: Build - run: go build -v ./... - - - name: Test - run: go test -v ./... diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6f6cfd5..1bd0a1f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,9 +2,9 @@ name: Go on: push: - branches: [ main ] + branches: [ master ] pull_request: - branches: [ main ] + branches: [ master ] jobs: