microsoft / design-to-code

A system of development tools, and utilities used à la carte or as a suite to build enterprise-grade websites and applications.
MIT License
24 stars 6 forks source link

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

Closed janechu closed 2 years ago

janechu commented 2 years ago

Pull Request

📖 Description

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

See: https://github.com/actions/checkout#checkout-v2

✅ Checklist

General