From 01f92b190dfd1ee39fa484fa2b26beaa1d9a0500 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 28 Sep 2025 17:05:05 +0000 Subject: [PATCH] chore: Sync from multipleof4/sune --- .github/workflows/mirr.yml | 29 ++++++++++++++++++++++++ .github/workflows/run-openssl-thrice.yml | 13 ----------- functions/gh/[[catchall]].js | 1 + 3 files changed, 30 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/mirr.yml delete mode 100644 .github/workflows/run-openssl-thrice.yml create mode 100644 functions/gh/[[catchall]].js diff --git a/.github/workflows/mirr.yml b/.github/workflows/mirr.yml new file mode 100644 index 0000000..f08c608 --- /dev/null +++ b/.github/workflows/mirr.yml @@ -0,0 +1,29 @@ +name: Sync with Upstream + +on: + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout target repository + uses: actions/checkout@v4 + + - name: Sync, preserving directories + run: | + set -e + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + git remote add upstream https://github.com/multipleof4/test.git + git fetch upstream master + git reset --hard upstream/master + git rm -r --ignore-unmatch functions .github/workflows + git checkout ORIG_HEAD -- functions .github/workflows + + git add -A + git diff-index --quiet HEAD || git commit -m "chore: Sync from multipleof4/sune" && git push --force diff --git a/.github/workflows/run-openssl-thrice.yml b/.github/workflows/run-openssl-thrice.yml deleted file mode 100644 index 3894808..0000000 --- a/.github/workflows/run-openssl-thrice.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Run OpenSSL Thrice -on: - workflow_dispatch: -jobs: - run-command: - runs-on: ubuntu-latest - steps: - - name: Run openssl rand -hex 32 (1/3) - run: openssl rand -hex 32 - - name: Run openssl rand -hex 32 (2/3) - run: openssl rand -hex 32 - - name: Run openssl rand -hex 32 (3/3) - run: openssl rand -hex 32 \ No newline at end of file diff --git a/functions/gh/[[catchall]].js b/functions/gh/[[catchall]].js new file mode 100644 index 0000000..610e1e7 --- /dev/null +++ b/functions/gh/[[catchall]].js @@ -0,0 +1 @@ +export const onRequest = ({params:{catchall:[o,r,b,...p]}}) => fetch(`https://raw.githack.com/${o}/${r}/${b}/${p.join('/')}`);