mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-11 17:37:21 +10:00
Merge branch 'main' of https://github.com/SpotX-Official/SpotX
This commit is contained in:
36
.github/workflows/org.yml
vendored
36
.github/workflows/org.yml
vendored
@@ -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
|
||||
@@ -1 +0,0 @@
|
||||
test
|
||||
15
run.ps1
15
run.ps1
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user