From 0b6b3d2660d16378c9b9d3ddaa4e19d428856a78 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Fri, 20 Nov 2020 01:46:02 +0000 Subject: [PATCH] List branches --- .../workflows/build-and-publish-pre-release.yml | 14 +++++++------- .github/workflows/build-and-publish-release.yml | 11 +++++++---- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-publish-pre-release.yml b/.github/workflows/build-and-publish-pre-release.yml index 33a84d2a..e02455d7 100644 --- a/.github/workflows/build-and-publish-pre-release.yml +++ b/.github/workflows/build-and-publish-pre-release.yml @@ -17,15 +17,15 @@ jobs: steps: - uses: actions/checkout@v2.3.3 - with: - fetch-depth: 0 + with: + fetch-depth: 0 - name: Fetch tags and master run: | - git fetch --tags - echo REF: $GITHUB_REF - echo SHA: $GITHUB_SHA - echo GIT_BRANCH=$GITHUB_REF >> $GITHUB_ENV - git branches --remote + git fetch --tags + echo REF: $GITHUB_REF + echo SHA: $GITHUB_SHA + echo GIT_BRANCH=$GITHUB_REF >> $GITHUB_ENV + git branches --remote - name: Determine .net core version uses: credfeto/action-dotnet-version-detect@v1.1.1 - name: Setup .NET Core diff --git a/.github/workflows/build-and-publish-release.yml b/.github/workflows/build-and-publish-release.yml index 4da820cb..549a555a 100644 --- a/.github/workflows/build-and-publish-release.yml +++ b/.github/workflows/build-and-publish-release.yml @@ -13,12 +13,15 @@ jobs: steps: - uses: actions/checkout@v2.3.3 + with: + fetch-depth: 0 - name: Fetch tags and master run: | - git fetch --tags - echo REF: $GITHUB_REF - echo SHA: $GITHUB_SHA - echo GIT_BRANCH=$GITHUB_REF >> $GITHUB_ENV + git fetch --tags + echo REF: $GITHUB_REF + echo SHA: $GITHUB_SHA + echo GIT_BRANCH=$GITHUB_REF >> $GITHUB_ENV + git branches --remote - name: Determine .net core version uses: credfeto/action-dotnet-version-detect@v1.1.1 - name: Setup .NET Core