From 16243f7485036031fb9ea1f130e2520d68f360c9 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 26 Jun 2025 10:55:04 +0100 Subject: [PATCH] Update .forgejo/workflows/release.yml --- .forgejo/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index e94e294..349d509 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -65,7 +65,7 @@ jobs: API_BASE="https://git.oguerreiro.com/api/v1" echo "Fetching latest release tag..." - LATEST_TAG=$(curl -sf -H "Authorization: token $TOKEN" \ + LATEST_TAG=$(curl -H "Authorization: token $TOKEN" \ "$API_BASE/repos/$REPO_OWNER/$REPO_NAME/tags" \ | jq -r '.[0].name') @@ -76,7 +76,7 @@ jobs: echo "Latest tag is: $LATEST_TAG" # Step 1: Get the tag ref object - TAG_REF=$(curl -sf -H "Authorization: token $TOKEN" \ + TAG_REF=$(curl -H "Authorization: token $TOKEN" \ "$API_BASE/repos/$REPO_OWNER/$REPO_NAME/git/refs/tags/$LATEST_TAG") echo "TAG_REF is: $TAG_REF" @@ -97,7 +97,7 @@ jobs: # Resolve annotated tag to commit SHA while [ "$TAG_OBJECT_TYPE" != "commit" ]; do echo "Try : $API_BASE/repos/$REPO_OWNER/$REPO_NAME/git/$TAG_OBJECT_TYPE/$TAG_OBJECT_SHA" - TAG_OBJECT=$(curl -sf -H "Authorization: token $TOKEN" \ + TAG_OBJECT=$(curl -H "Authorization: token $TOKEN" \ "$API_BASE/repos/$REPO_OWNER/$REPO_NAME/git/$TAG_OBJECT_TYPE/$TAG_OBJECT_SHA") echo "Read" @@ -111,7 +111,7 @@ jobs: # Step 2: If it's a tag object, resolve to commit if [ "$TAG_OBJECT_TYPE" = "tag" ]; then - COMMIT_SHA=$(curl -sf -H "Authorization: token $TOKEN" \ + COMMIT_SHA=$(curl -H "Authorization: token $TOKEN" \ "$API_BASE/repos/$REPO_OWNER/$REPO_NAME/git/tags/$TAG_OBJECT_SHA" \ | jq -r '.object.sha') else @@ -120,12 +120,12 @@ jobs: echo "COMMIT_SHA is : $COMMIT_SHA" # Step 3: Get the commit date - COMMIT_DATE=$(curl -sf -H "Authorization: token $TOKEN" \ + COMMIT_DATE=$(curl -H "Authorization: token $TOKEN" \ "$API_BASE/repos/$REPO_OWNER/$REPO_NAME/git/commits/$COMMIT_SHA" \ | jq -r '.committer.date') echo "Fetching closed issues since $COMMIT_DATE..." - CLOSED_ISSUES_JSON=$(curl -sf -H "Authorization: token $TOKEN" \ + CLOSED_ISSUES_JSON=$(curl -H "Authorization: token $TOKEN" \ "$API_BASE/repos/$REPO_OWNER/$REPO_NAME/issues?state=closed&since=$COMMIT_DATE") if [[ -z "$CLOSED_ISSUES_JSON" ]]; then