ci: avoid fetching full git history during build

This commit is contained in:
Nicolas Giard 2024-01-15 19:01:18 -05:00 committed by GitHub
parent 71cf00ddc6
commit eae048d6a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 1
fetch-tags: false
- name: Get Next Version
if: ${{ github.ref_name == 'release' }}
@ -131,7 +132,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 1
fetch-tags: false
- name: Setup Node.js
uses: actions/setup-node@v4
@ -190,7 +192,7 @@ jobs:
docker run --rm --name collectstatics -v $(pwd):/workspace ghcr.io/ietf-tools/datatracker-app-base:latest sh dev/deploy/collectstatics.sh
echo "Pushing statics..."
cd static
aws s3 sync . s3://static/dt/$PKG_VERSION
aws s3 sync . s3://static/dt/$PKG_VERSION --only-show-errors
- name: Update CHANGELOG
id: changelog