From a0f33a9b2dffc4775031c91d86c26528efb782b1 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 18 Dec 2023 11:56:28 +0100 Subject: [PATCH] fetch tags instead of fetch-depth: 0 --- examples/scheduled-release.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/scheduled-release.md b/examples/scheduled-release.md index 5612c9a..e9323c5 100644 --- a/examples/scheduled-release.md +++ b/examples/scheduled-release.md @@ -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" @@ -62,4 +62,4 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v4.5.1 with: commit_message: 'fix(release): schedule release' -``` \ No newline at end of file +```