Skip to content

Commit

Permalink
Use checkout fetch-depth param
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Apr 29, 2022
1 parent 03c6f11 commit 4ee926b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/backend-staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch history for all branches and tags

- name: Install Heroku CLI
run: curl https://cli-assets.heroku.com/install.sh | sh
Expand All @@ -20,9 +22,7 @@ jobs:
run: heroku plugins:install heroku-builds

- name: Build app into tarball
run: |
git fetch --prune --unshallow --tags
python setup.py sdist --formats=gztar
run: python setup.py sdist --formats=gztar

- name: Create Heroku Build
run: heroku builds:create -a dandi-api-staging --source-tar=dist/$(python setup.py --fullname).tar.gz
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/update-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ jobs:
run: heroku plugins:install heroku-builds

- name: Build app into tarball
run: |
git fetch --prune --unshallow --tags
python setup.py sdist --formats=gztar
run: python setup.py sdist --formats=gztar

- name: Create Heroku Build
run: heroku builds:create -a dandi-api --source-tar=dist/$(python setup.py --fullname).tar.gz
Expand Down

0 comments on commit 4ee926b

Please sign in to comment.