download: enable ghproxy

This commit is contained in:
easterNday
2023-06-08 08:55:08 +08:00
parent 0dc447896c
commit db40906e2d
4 changed files with 55 additions and 10 deletions

31
.github/workflows/debug.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: debug
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Version
id: get_version
run: |
echo "version=$(grep -oP 'version=\K[^ ]+' module.prop)" >> "$GITHUB_OUTPUT"
echo "date=$(date +%Y%m%d)" >> "$GITHUB_OUTPUT"
- name: Generate Asset
run: |
sudo mkdir -p /box_for_root
sudo cp -r --parents $(find ./ -type f ! -path './.git/*' ! -name 'CHANGELOG.md' ! -name 'update.json' ! -name 'build.sh' ! -path './.github/*' ! -path './docs/*') /box_for_root/
- name: Upload Debug Asset => (box_for_magisk_${{ steps.get_version.outputs.version }}_$(date +%Y%m%d))
uses: actions/upload-artifact@v3
with:
name: "box_for_magisk_${{ steps.get_version.outputs.version }}_${{ steps.get_version.outputs.date }}"
path: /box_for_root/

View File

@@ -1,17 +1,17 @@
name: Delete old workflow runs
description: This workflow deletes old workflow runs to maintain a clean workflow history.
on:
workflow_dispatch:
jobs:
delete_old_runs:
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/master'
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 0
keep_minimum_runs: 0

View File

@@ -16,12 +16,6 @@ jobs:
- name: run build.sh
run: sh build.sh
- name: Upload Release Asset
uses: actions/upload-artifact@v2
with:
name: box_for_magisk
path: box_for_root-v*.zip
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with: