Skip to content

Commit 813dc4d

Browse files
committed
Added bump utils/bump/chatbots.js
1 parent a987b6c commit 813dc4d

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/sync-bump-resources-script-changes-to-ai-web.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: Sync utils/bump/resources.js to adamlui/ai-web-extensions
1+
name: Sync utils/bump scripts to adamlui/ai-web-extensions
22

33
on:
44
push:
55
branches: [master]
6-
paths: [utils/bump/resources.js]
6+
paths: [utils/bump/chatbots.js, utils/bump/resources.js]
77

88
permissions:
99
contents: read
1010

1111
jobs:
12-
sync-resources:
12+
sync-bump-scripts:
1313
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
1414
runs-on: ubuntu-latest
1515
env:
@@ -29,10 +29,12 @@ jobs:
2929
repository: adamlui/ai-web-extensions
3030
path: adamlui/ai-web-extensions
3131

32-
- name: Sync resources.js
32+
- name: Sync bump scripts
3333
run: |
34-
cp -f ${{ github.workspace }}/adamlui/userscripts/utils/bump/resources.js \
35-
${{ github.workspace }}/adamlui/ai-web-extensions/utils/bump/resources.js
34+
for filename in "chatbots.js" "resources.js" ; do
35+
cp -f ${{ github.workspace }}/adamlui/userscripts/utils/bump/${filename} \
36+
${{ github.workspace }}/adamlui/ai-web-extensions/utils/bump/${filename}
37+
done
3638
3739
- name: Escape backticks in commit msg
3840
env:
@@ -54,6 +56,6 @@ jobs:
5456
run: |
5557
cd ${{ github.workspace }}/adamlui/ai-web-extensions
5658
git pull # sync w/ concurrent updates
57-
git add utils/bump/resources.js
58-
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/adamlui/userscripts/blob/master/utils/bump/resources.js]" || true
59+
git add utils/bump/chatbots.js utils/bump/resources.js
60+
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/adamlui/userscripts/tree/master/utils/bump]" || true
5961
git push

0 commit comments

Comments
 (0)