console.error("Failed to fetch latest version from GitHub:", error); // If an error occurs, try to get the version from build.gradle return await getCurrentVersionFromBypass(); } } async function getCurrentVersionFromBypass() { const url = "https://raw.githubusercontent.com/Stirling-Tools...
git commit -m "Update translation files" || echo "No changes to commit" - name: Push if: env.CHANGES_DETECTED == 'true' run: | cd pr-branch git push origin ${{ github.head_ref }} || echo "Push failed: possibly no changes to push" ...
2 changes: 1 addition & 1 deletion 2 src/main/java/stirling/software/SPDF/config/security/CustomAuthenticationFailureHandler.java Original file line numberDiff line numberDiff line change @@ -43,7 +43,7 @@ public void onAuthenticationFailure( logger.error("Failed login attempt from IP: {}"...
console.error("Failed to fetch latest version:", error); console.error("Failed to fetch latest version from build.gradle:", error); return ""; // Return an empty string if the fetch fails } }2 changes: 1 addition & 1 deletion 2 src/main/resources/templates/fragments/navbar.html Origin...
console.error("Failed to fetch latest version:", error); return ""; // Return an empty string if the fetch fails } }async function checkForUpdate() { const latestVersion = await getLatestReleaseVersion(); console.log("latestVersion=" + latestVersion) ...
const response = await fetch(url); const data = await response.json(); return data.tag_name ? data.tag_name.substring(1) : ""; } catch (error) { console.error("Failed to fetch latest version:", error); return ""; // Return an empty string if the fetch fails ...
git commit -m "Update translation files" || echo "No changes to commit" - name: Push if: env.CHANGES_DETECTED == 'true' run: | cd pr-branch git push origin ${{ github.head_ref }} || echo "Push failed: possibly no changes to push" ...
path: pr-branch fetch-depth: 0- name: Checkout main branch uses: actions/checkout@v4 with: ref: main path: main-branch fetch-depth: 0- name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.x"- name: Install GitHub CLI ...
path: pr-branch fetch-depth: 0- name: Checkout main branch uses: actions/checkout@v4 with: ref: main path: main-branch fetch-depth: 0- name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.x"- name: Install GitHub CLI ...