Skip to content

Commit a60934e

Browse files
authored
ci: fixed token miss
1 parent 68f3a6c commit a60934e

1 file changed

Lines changed: 32 additions & 31 deletions

File tree

.github/workflows/Auto update packages v3.yml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ jobs:
6868
folder: chinadns-ng
6969
version_head: PKG_VERSION:=
7070
release_api_command: >
71-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/zfl9/chinadns-ng/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
71+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/zfl9/chinadns-ng/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
7272
prerelease_api_command: >
73-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/zfl9/chinadns-ng/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
73+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/zfl9/chinadns-ng/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
7474
base_download_url: https://github.com/zfl9/chinadns-ng/releases/download/
7575

7676
- pakcages: geoview
@@ -79,9 +79,9 @@ jobs:
7979
version_head: PKG_VERSION:=
8080
hash_head: PKG_HASH:=
8181
release_api_command: >
82-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/snowie2000/geoview/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
82+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/snowie2000/geoview/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
8383
prerelease_api_command: >
84-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/snowie2000/geoview/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
84+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/snowie2000/geoview/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
8585
release_download_url: https://codeload.github.com/snowie2000/geoview/tar.gz/
8686

8787
- pakcages: hysteria
@@ -90,9 +90,9 @@ jobs:
9090
version_head: PKG_VERSION:=
9191
hash_head: PKG_HASH:=
9292
release_api_command: >
93-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/apernet/hysteria/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
93+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/apernet/hysteria/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
9494
prerelease_api_command: >
95-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/apernet/hysteria/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
95+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/apernet/hysteria/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
9696
release_download_url: https://codeload.github.com/apernet/hysteria/tar.gz/app/v
9797

9898
- pakcages: ipt2socks
@@ -101,9 +101,9 @@ jobs:
101101
version_head: PKG_VERSION:=
102102
hash_head: PKG_HASH:=
103103
release_api_command: >
104-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/zfl9/ipt2socks/tags" | jq -r 'first | .name' | sed -e 's/.*v//'
104+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/zfl9/ipt2socks/tags" | jq -r 'first | .name' | sed -e 's/.*v//'
105105
prerelease_api_command: >
106-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/zfl9/ipt2socks/tags" | jq -r 'first | .name' | sed -e 's/.*v//'
106+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/zfl9/ipt2socks/tags" | jq -r 'first | .name' | sed -e 's/.*v//'
107107
release_download_url: https://codeload.github.com/zfl9/ipt2socks/tar.gz/v
108108

109109
- pakcages: microsocks
@@ -112,28 +112,28 @@ jobs:
112112
version_head: PKG_VERSION:=
113113
hash_head: PKG_HASH:=
114114
release_api_command: >
115-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/rofl0r/microsocks/tags" | jq -r 'first | .name' | sed -e 's/.*v//'
115+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/rofl0r/microsocks/tags" | jq -r 'first | .name' | sed -e 's/.*v//'
116116
prerelease_api_command: >
117-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/rofl0r/microsocks/tags" | jq -r 'first | .name' | sed -e 's/.*v//'
117+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/rofl0r/microsocks/tags" | jq -r 'first | .name' | sed -e 's/.*v//'
118118
release_download_url: https://codeload.github.com/rofl0r/microsocks/tar.gz/v
119119

120120
- pakcages: naiveproxy
121121
update_type: multi_arch_ifeq
122122
folder: naiveproxy
123123
release_api_command: >
124-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/klzgrad/naiveproxy/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
124+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/klzgrad/naiveproxy/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
125125
prerelease_api_command: >
126-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/klzgrad/naiveproxy/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
126+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/klzgrad/naiveproxy/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
127127
128128
- pakcages: shadow-tls
129129
update_type: single
130130
folder: shadow-tls
131131
version_head: PKG_VERSION:=
132132
hash_head: PKG_HASH:=
133133
release_api_command: >
134-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/ihciah/shadow-tls/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
134+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/ihciah/shadow-tls/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
135135
prerelease_api_command: >
136-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/ihciah/shadow-tls/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
136+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/ihciah/shadow-tls/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
137137
release_download_url: https://codeload.github.com/ihciah/shadow-tls/tar.gz/v
138138

139139
- pakcages: shadowsocks-rust
@@ -142,9 +142,9 @@ jobs:
142142
version_head: PKG_VERSION:=
143143
hash_head: PKG_HASH:=
144144
release_api_command: >
145-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
145+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
146146
prerelease_api_command: >
147-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
147+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
148148
release_download_url: https://codeload.github.com/shadowsocks/shadowsocks-rust/tar.gz/v
149149

150150
- pakcages: sing-box
@@ -153,19 +153,19 @@ jobs:
153153
version_head: PKG_VERSION:=
154154
hash_head: PKG_HASH:=
155155
release_api_command: >
156-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/SagerNet/sing-box/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
156+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/SagerNet/sing-box/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
157157
prerelease_api_command: >
158-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/SagerNet/sing-box/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
158+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/SagerNet/sing-box/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
159159
release_download_url: https://codeload.github.com/SagerNet/sing-box/tar.gz/v
160160

161161
- pakcages: tuic-client
162162
update_type: multi_arch_tuic
163163
folder: tuic-client
164164
version_head: PKG_VERSION:=
165165
release_api_command: >
166-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/Itsusinn/tuic/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
166+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/Itsusinn/tuic/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
167167
prerelease_api_command: >
168-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/Itsusinn/tuic/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
168+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/Itsusinn/tuic/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
169169
base_download_url: https://github.com/Itsusinn/tuic/releases/download/v
170170

171171
- pakcages: v2ray-plugin
@@ -174,9 +174,9 @@ jobs:
174174
version_head: PKG_VERSION:=
175175
hash_head: PKG_HASH:=
176176
release_api_command: >
177-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/teddysun/v2ray-plugin/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
177+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/teddysun/v2ray-plugin/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
178178
prerelease_api_command: >
179-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/teddysun/v2ray-plugin/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
179+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/teddysun/v2ray-plugin/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
180180
release_download_url: https://codeload.github.com/teddysun/v2ray-plugin/tar.gz/v
181181

182182
- pakcages: xray-core
@@ -185,9 +185,9 @@ jobs:
185185
version_head: PKG_VERSION:=
186186
hash_head: PKG_HASH:=
187187
release_api_command: >
188-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/XTLS/Xray-core/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
188+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/XTLS/Xray-core/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
189189
prerelease_api_command: >
190-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/XTLS/Xray-core/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
190+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/XTLS/Xray-core/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
191191
release_download_url: https://codeload.github.com/XTLS/Xray-core/tar.gz/v
192192

193193
- pakcages: xray-plugin
@@ -196,9 +196,9 @@ jobs:
196196
version_head: PKG_VERSION:=
197197
hash_head: PKG_HASH:=
198198
release_api_command: >
199-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/teddysun/xray-plugin/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
199+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/teddysun/xray-plugin/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
200200
prerelease_api_command: >
201-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/teddysun/xray-plugin/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
201+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/teddysun/xray-plugin/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
202202
release_download_url: https://codeload.github.com/teddysun/xray-plugin/tar.gz/v
203203

204204
- pakcages: v2ray-geoip
@@ -209,9 +209,9 @@ jobs:
209209
hash_head: \ HASH:=
210210
hash_line: 21
211211
release_api_command: >
212-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/Loyalsoldier/geoip/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
212+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/Loyalsoldier/geoip/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
213213
prerelease_api_command: >
214-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/Loyalsoldier/geoip/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
214+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/Loyalsoldier/geoip/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
215215
release_download_url: https://github.com/Loyalsoldier/geoip/releases/download/
216216
file_name: /geoip.dat
217217

@@ -223,12 +223,11 @@ jobs:
223223
hash_head: \ HASH:=
224224
hash_line: 30
225225
release_api_command: >
226-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/Loyalsoldier/v2ray-rules-dat/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
226+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/Loyalsoldier/v2ray-rules-dat/releases" | jq -r 'map(select(.prerelease|not)) | first | .tag_name' | sed -e 's/.*v//'
227227
prerelease_api_command: >
228-
curl -sL -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/Loyalsoldier/v2ray-rules-dat/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
228+
curl -sL -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/Loyalsoldier/v2ray-rules-dat/releases" | jq -r 'first | .tag_name' | sed -e 's/.*v//'
229229
release_download_url: https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/
230230
file_name: /geosite.dat
231-
232231
steps:
233232
- name: Checkout
234233
uses: actions/checkout@main
@@ -240,6 +239,8 @@ jobs:
240239
241240
- name: Check ${{ matrix.pakcages }}
242241
id: check
242+
env:
243+
GH_TOKEN: ${{ github.token }}
243244
run: |
244245
is_continue=true
245246
if [ "${{ github.event.inputs.is_update_geodata }}" != "true" ] && [ "${{ matrix.is_geodata }}" == "true" ]; then

0 commit comments

Comments
 (0)