From c21b4b7ccab4e088cf0e4fff0ab84dba363f75f2 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Mon, 27 Mar 2023 15:08:14 -0700 Subject: [PATCH] fetch all history openapi workflow (#35923) --- .github/workflows/openapi-decorate.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/openapi-decorate.yml b/.github/workflows/openapi-decorate.yml index 749a24f18c..2c38a8ebc4 100644 --- a/.github/workflows/openapi-decorate.yml +++ b/.github/workflows/openapi-decorate.yml @@ -36,6 +36,11 @@ jobs: - name: Checkout repository code uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + with: + # In order to fail gracefully when a branch already exists + # in the "Create pull request" step, we need to be able + # to get all existing branches. + fetch-depth: 0 # Check out a nested repository inside of previous checkout - name: Checkout rest-api-description repo