diff --git a/.github/workflows/check-git-branches.yml b/.github/workflows/check-git-branches.yml index 311869d1b1..9898b6c76e 100644 --- a/.github/workflows/check-git-branches.yml +++ b/.github/workflows/check-git-branches.yml @@ -8,19 +8,19 @@ on: jobs: get_release: runs-on: ubuntu-20.04 - needs: matrix_prep outputs: output1: ${{ steps.step2.outputs.latest_release }} steps: - name: Check out repository code uses: actions/checkout@v3 - - name: Fetch all branches - run: git fetch --all + with: + fetch-depth: 0 - name: Set output variable to latest release branch id: step2 run: echo "latest_release=$(git branch -r | grep -E 'release/v[0-9]+\.[0-9]+\.[0-9]+' | tail -n 1 | sed 's/ origin\///')" >> $GITHUB_OUTPUT check-merge-master: name: Check that the release branch merges into master + needs: get_release runs-on: ubuntu-latest steps: - name: Checkout repo