ci: use tag v2 when using checkout action

Using v2 automatically fetches the latest minor patch for v2, meaning
free bug fixes without needing to manually update the tag version.
This commit is contained in:
Dundar Göc
2021-12-04 13:24:18 +01:00
parent 76af219e3e
commit 8cd1fa8945

View File

@@ -9,7 +9,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2.3.1
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}