Skip to content

Commit

Permalink
use PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 3, 2023
1 parent 16c701f commit 7ff43af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,11 @@ jobs:
run: |
npx tsx ./proxy.ts
cat proxy.json
env:
REPO: ${{ github.repository }}
- name: Upload proxy.json
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
token: ${{ secrets.MY_TOKEN }}
files: |
proxy.json
6 changes: 2 additions & 4 deletions proxy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import fs from "fs";
import path from "path";
const files = ["alist-desktop-proxy.json", "alist-desktop.json"];

interface Updater {
name: string;
Expand All @@ -14,9 +12,9 @@ interface Updater {
};
}

console.log(process.env);
// console.log(process.env);

const repo = process.env.REPO || process.env.GITHUB_REPOSITORY!;
const repo = process.env.GITHUB_REPOSITORY!;

const generateProxy = async () => {
const res = await fetch(
Expand Down

0 comments on commit 7ff43af

Please sign in to comment.