Skip to content

Commit c8fadda

Browse files
committed
Added sync to adamlui/<minify.js|scss-to-css>
1 parent 06b69b9 commit c8fadda

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/sync-bump.sh-changes.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ jobs:
2424
path: adamlui/js-utils
2525
fetch-depth: 2
2626

27+
- name: Checkout adamlui/minify.js
28+
uses: actions/checkout@v5.0.0
29+
with:
30+
token: ${{ secrets.REPO_SYNC_PAT }}
31+
repository: adamlui/minify.js
32+
path: adamlui/minify.js
33+
34+
- name: Checkout adamlui/scss-to-css
35+
uses: actions/checkout@v5.0.0
36+
with:
37+
token: ${{ secrets.REPO_SYNC_PAT }}
38+
repository: adamlui/scss-to-css
39+
path: adamlui/scss-to-css
40+
2741
- name: Sync changes between **/bump.sh
2842
run: |
2943
cd ${{ github.workspace }}/adamlui/js-utils
@@ -48,6 +62,18 @@ jobs:
4862
sync_src=$(echo "$newest_file" | cut -d'/' -f2-3)
4963
echo "SYNC_SRC=$sync_src" >> $GITHUB_ENV
5064
65+
- name: Sync minify.js/ to adamlui/minify.js/
66+
run: |
67+
rsync -avhr --delete --filter='P /.*' \
68+
${{ github.workspace }}/adamlui/js-utils/minify.js/ \
69+
${{ github.workspace }}/adamlui/minify.js/
70+
71+
- name: Sync scss-to-css/ to adamlui/scss-to-css/
72+
run: |
73+
rsync -avhr --delete --filter='P /.*' \
74+
${{ github.workspace }}/adamlui/js-utils/scss-to-css/ \
75+
${{ github.workspace }}/adamlui/scss-to-css/
76+
5177
- name: Escape backticks in commit msg
5278
env:
5379
COMMIT_MSG: ${{ github.event.head_commit.message }}
@@ -75,3 +101,17 @@ jobs:
75101
git add .
76102
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from $SYNC_SRC]" || true
77103
git push
104+
105+
- name: Push changes to adamlui/minify.js
106+
run: |
107+
cd ${{ github.workspace }}/adamlui/minify.js
108+
git pull && git add .
109+
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/adamlui/js-utils/tree/main/minify.js]" || true
110+
git push
111+
112+
- name: Push changes to adamlui/scss-to-css
113+
run: |
114+
cd ${{ github.workspace }}/adamlui/scss-to-css
115+
git pull && git add .
116+
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/adamlui/js-utils/tree/main/scss-to-css]" || true
117+
git push

0 commit comments

Comments
 (0)