File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Sync utils/bump/resources.js to adamlui/ai-web-extensions
1+ name : Sync utils/bump scripts to adamlui/ai-web-extensions
22
33on :
44 push :
55 branches : [master]
6- paths : [utils/bump/resources.js]
6+ paths : [utils/bump/chatbots.js, utils/bump/ resources.js]
77
88permissions :
99 contents : read
1010
1111jobs :
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 :
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
You can’t perform that action at this time.
0 commit comments