diff --git a/.gitea/workflows/tag-old-issues.yaml b/.gitea/workflows/tag-old-issues.yaml index 585398b..bcaaee5 100644 --- a/.gitea/workflows/tag-old-issues.yaml +++ b/.gitea/workflows/tag-old-issues.yaml @@ -29,7 +29,7 @@ jobs: sudo apt-get -qq update && sudo apt-get -qq install -y jq curl # --- Conditionally build the API URL --- - API_URL="${GITEA_INSTANCE_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/issues?state=open" + API_URL="${INSTANCE_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/issues?state=open" if [[ -n "${REQUIRED_TAG}" ]]; then echo ">> Filtering for issues with the required tag: ${REQUIRED_TAG}" # URL-encode the tag to handle special characters @@ -41,10 +41,6 @@ jobs: # Fetch issues using the constructed URL echo ">> Fetching issues ..." - curl -X GET \ - -H "Authorization: token ${BOT_TOKEN}" \ - -H "Accept: application/json" \ - "${API_URL}" ISSUES=$(curl -s -S -X GET \ -H "Authorization: token ${BOT_TOKEN}" \ -H "Accept: application/json" \