Skip to content

Commit

Permalink
Update README.md (#20)
Browse files Browse the repository at this point in the history
The advanced example was not updated in #19, and needs to use `fetch-depth` in order to be working with `actions/checkout` past `v1`. See https://github.com/actions/checkout/blob/main/CHANGELOG.md#v2-beta
  • Loading branch information
mroderick authored Sep 25, 2024
1 parent e49f89f commit a810257
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
lint_migrations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Find modified migrations
run: |
modified_migrations=$(git diff --diff-filter=d --name-only origin/$GITHUB_BASE_REF...origin/$GITHUB_HEAD_REF 'migrations/*.sql')
Expand Down

0 comments on commit a810257

Please sign in to comment.