Skip to content

Commit

Permalink
Refactor: tag fetch (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran authored Jan 9, 2024
2 parents 5858e44 + 123b979 commit 6cac9ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get history and tags for SCM versioning to work
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
with:
fetch-tags: true

- uses: actions/setup-python@v5
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Create GitHub release

on:
push:
tags:
Expand All @@ -13,6 +15,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 6cac9ba

Please sign in to comment.