This commit is contained in:
amd64fox
2023-10-03 04:54:30 +03:00
3 changed files with 0 additions and 52 deletions

View File

@@ -1,36 +0,0 @@
name: Update github.io
on:
workflow_dispatch:
push:
paths:
- 'run.ps1'
jobs:
copy_file:
runs-on: ubuntu-latest
steps:
- name: Checkout SpotX repo
uses: actions/checkout@v2
with:
repository: SpotX-Official/SpotX
- name: Checkout spotx-official.github.io repo
uses: actions/checkout@v2
with:
repository: SpotX-Official/spotx-official.github.io
path: spotx-official.github.io
token: ${{ secrets.ORGPAT }}
- name: Copy run.ps1 file
run: cp run.ps1 spotx-official.github.io/run.ps1
- name: Push changes
run: |
cd spotx-official.github.io
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add run.ps1
git commit -m "Update run.ps1"
git push

View File

@@ -1 +0,0 @@
test

15
run.ps1
View File

@@ -356,21 +356,6 @@ else {
}
$online = ($onlineFull -split ".g")[0]
# Sending a statistical web query to cutt.ly
$ErrorActionPreference = 'SilentlyContinue'
$cutt_url = "https://cutt.ly/8wv60QTL"
$retries = 0
while ($retries -lt 2) {
try {
$null = Invoke-WebRequest -useb -Uri $cutt_url
break
}
catch {
$retries++
Start-Sleep -Seconds 2
}
}
function incorrectValue {