Skip to content

Commit

Permalink
fetch tags instead of fetch-depth: 0
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 18, 2023
1 parent b95747c commit a0f33a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/scheduled-release.md
Expand Up @@ -16,10 +16,10 @@ jobs:
previous-tag: ${{ steps.previoustag.outputs.tag }}
timestamp-diff: ${{ steps.diff.outputs.timestamp-diff }}
steps:
- uses: actions/checkout@v2.3.3
with:
fetch-depth: 0
- uses: actions/checkout@v4
#▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼#
- run: git fetch --tags origin

- name: Get previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
Expand Down Expand Up @@ -62,4 +62,4 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v4.5.1
with:
commit_message: 'fix(release): schedule release'
```
```

0 comments on commit a0f33a9

Please sign in to comment.