From 0019f415b75b03042dc2de0b3448b764c5d8510f Mon Sep 17 00:00:00 2001 From: Morgan Roderick <20321+mroderick@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:40:44 +0200 Subject: [PATCH] fix: github_app.md (#384) Fix mistake added in #381, where updating to `actions/checkout` past `v1` would mean the example stops working. This is due to change in the checkout functionality in `actions/checkout` introduced in v2 (beta). See https://github.com/actions/checkout/blob/main/CHANGELOG.md#v2-beta --- docs/docs/github_app.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/github_app.md b/docs/docs/github_app.md index 3d9e254c..a33d0fe6 100644 --- a/docs/docs/github_app.md +++ b/docs/docs/github_app.md @@ -31,6 +31,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Find modified migrations run: | modified_migrations=$(git diff --name-only origin/$GITHUB_BASE_REF...origin/$GITHUB_HEAD_REF 'migrations/*.sql')