Skip to content

Commit bdad502

Browse files
authored
Update build-dist.yml
1 parent b1614d4 commit bdad502

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build-dist.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ jobs:
1818

1919
- name: Replace require paths, add timestamp, and create dist file
2020
run: |
21-
TIMESTAMP=$(date +%s)
22-
23-
sed -e "s#https://update.greasyfork.org/scripts/6158/23710/GM_config%20CN.js#https://hoothin.github.io/UserScripts/Picviewer%20CE%2B/GM_config%20CN.js?v=$TIMESTAMP#" \
24-
-e "s#https://update.greasyfork.org/scripts/438080/1655629/pvcep_rules.js#https://hoothin.github.io/UserScripts/Picviewer%20CE%2B/pvcep_rules.js?v=$TIMESTAMP#" \
25-
-e "s#https://update.greasyfork.org/scripts/440698/1653424/pvcep_lang.js#https://hoothin.github.io/UserScripts/Picviewer%20CE%2B/pvcep_lang.js?v=$TIMESTAMP#" \
21+
sed -e "s#https://update.greasyfork.org/scripts/6158/([0-9]+)/GM_config%20CN.js#https://hoothin.github.io/UserScripts/Picviewer%20CE%2B/GM_config%20CN.js?v=\1#" \
22+
-e "s#https://update.greasyfork.org/scripts/438080/([0-9]+)/pvcep_rules.js#https://hoothin.github.io/UserScripts/Picviewer%20CE%2B/pvcep_rules.js?v=\1#" \
23+
-e "s#https://update.greasyfork.org/scripts/440698/([0-9]+)/pvcep_lang.js#https://hoothin.github.io/UserScripts/Picviewer%20CE%2B/pvcep_lang.js?v=\1#" \
2624
"Picviewer CE+/Picviewer CE+.user.js" > "Picviewer CE+/dist.user.js"
2725
2826
- name: Commit and push dist.user.js

0 commit comments

Comments
 (0)