From e6d9ece26479883dfa2409e4e66b61ce2da902a3 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Fri, 1 Mar 2024 23:34:47 +0100 Subject: [PATCH] ci: Fix name of default branch in publishing workflow --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index acc5ed0..0aaf3a1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: docs on: workflow_dispatch: push: - branches: [master] + branches: [main] tags: - "*" @@ -16,10 +16,10 @@ jobs: - name: checks for the label id: label_step run: | - if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then + if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then echo "version=latest" >> $GITHUB_OUTPUT fi - if [[ "${{ github.ref_type }}" == "branch" ]] && [[ "${{ github.ref }}" != "refs/heads/master" ]]; then + if [[ "${{ github.ref_type }}" == "branch" ]] && [[ "${{ github.ref }}" != "refs/heads/main" ]]; then exit 1 fi if [[ "${{ github.ref_type }}" == "tag" ]]; then