Skip to content

Commit 7ff43af

Browse files
committed
use PAT
1 parent 16c701f commit 7ff43af

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,11 @@ jobs:
126126
run: |
127127
npx tsx ./proxy.ts
128128
cat proxy.json
129-
env:
130-
REPO: ${{ github.repository }}
131129
132130
- name: Upload proxy.json
133131
uses: softprops/action-gh-release@v1
134132
with:
135133
fail_on_unmatched_files: true
134+
token: ${{ secrets.MY_TOKEN }}
136135
files: |
137136
proxy.json

proxy.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import fs from "fs";
2-
import path from "path";
3-
const files = ["alist-desktop-proxy.json", "alist-desktop.json"];
42

53
interface Updater {
64
name: string;
@@ -14,9 +12,9 @@ interface Updater {
1412
};
1513
}
1614

17-
console.log(process.env);
15+
// console.log(process.env);
1816

19-
const repo = process.env.REPO || process.env.GITHUB_REPOSITORY!;
17+
const repo = process.env.GITHUB_REPOSITORY!;
2018

2119
const generateProxy = async () => {
2220
const res = await fetch(

0 commit comments

Comments
 (0)