Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b4f0fecad2 | |||
| 903fa17f8a | |||
| 693f21915d |
@@ -24,7 +24,7 @@ jobs:
|
|||||||
cd repo
|
cd repo
|
||||||
VERSION="${{ gitea.ref_name }}"
|
VERSION="${{ gitea.ref_name }}"
|
||||||
ZIP="SharePoint_ToolBox_${VERSION}.zip"
|
ZIP="SharePoint_ToolBox_${VERSION}.zip"
|
||||||
zip -r "../${ZIP}" Sharepoint_ToolBox.ps1 lang/
|
zip -r "../${ZIP}" Sharepoint_ToolBox.ps1 lang/ examples/
|
||||||
echo "ZIP=${ZIP}" >> "$GITHUB_ENV"
|
echo "ZIP=${ZIP}" >> "$GITHUB_ENV"
|
||||||
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases" \
|
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases" \
|
||||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"tag_name\":\"${{ env.VERSION }}\",\"name\":\"SharePoint ToolBox ${{ env.VERSION }}\",\"body\":\"### How to use\\n1. Download and extract the archive\\n2. Launch Sharepoint_ToolBox.ps1 with PowerShell\\n\"}" \
|
-d "{\"tag_name\":\"${{ env.VERSION }}\",\"name\":\"SharePoint ToolBox ${{ env.VERSION }}\",\"body\":\"1. Download and extract the archive\\n2. Launch Sharepoint_ToolBox.ps1 with PowerShell\\n\"}" \
|
||||||
| python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")
|
| python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")
|
||||||
echo "RELEASE_ID=${RELEASE_ID}" >> "$GITHUB_ENV"
|
echo "RELEASE_ID=${RELEASE_ID}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
|||||||
@@ -6057,16 +6057,12 @@ $btnVerOpen.Add_Click({
|
|||||||
|
|
||||||
$btnVerRun.Add_Click({
|
$btnVerRun.Add_Click({
|
||||||
# --- Gather all selected site URLs ---
|
# --- Gather all selected site URLs ---
|
||||||
$siteUrls = @()
|
$siteUrls = if ($script:SelectedSites -and $script:SelectedSites.Count -gt 0) {
|
||||||
if ($script:_CachedSites -and $script:_CachedSites.Count -gt 0) {
|
@($script:SelectedSites)
|
||||||
foreach ($s in $script:_CachedSites) {
|
} else {
|
||||||
if ($s.Checked) { $siteUrls += $s.Url }
|
@($txtSiteURL.Text.Trim())
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($siteUrls.Count -eq 0) {
|
|
||||||
$single = $txtSiteUrl.Text.Trim()
|
|
||||||
if ($single) { $siteUrls = @($single) }
|
|
||||||
}
|
}
|
||||||
|
$siteUrls = @($siteUrls | Where-Object { $_ })
|
||||||
if ($siteUrls.Count -eq 0) { Write-Log "Site URL required." "Red"; return }
|
if ($siteUrls.Count -eq 0) { Write-Log "Site URL required." "Red"; return }
|
||||||
|
|
||||||
$clientId = $txtClientId.Text.Trim()
|
$clientId = $txtClientId.Text.Trim()
|
||||||
|
|||||||
Reference in New Issue
Block a user