Set the checkout actions fetch depth in build gate workflow to ensure there is a local version of the main branch available (#110)

# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
The build gate must have a `main` branch available to check against when assessing if change files need to be present. This accomplishes this by setting the fetch depth to 0, which will during checkout, check all branches out for reference.

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
See: https://github.com/actions/checkout#checkout-v2

##  Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
This commit is contained in:
Jane Chu 2021-10-08 13:59:15 -07:00 коммит произвёл GitHub
Родитель 5e257b3538
Коммит 98490d879c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 0 удалений

2
.github/workflows/ci-validate.yml поставляемый
Просмотреть файл

@ -18,6 +18,8 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache multiple paths
uses: actions/cache@v2