|
24 | 24 | path: adamlui/js-utils |
25 | 25 | fetch-depth: 2 |
26 | 26 |
|
| 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 | + |
27 | 41 | - name: Sync changes between **/bump.sh |
28 | 42 | run: | |
29 | 43 | cd ${{ github.workspace }}/adamlui/js-utils |
|
48 | 62 | sync_src=$(echo "$newest_file" | cut -d'/' -f2-3) |
49 | 63 | echo "SYNC_SRC=$sync_src" >> $GITHUB_ENV |
50 | 64 |
|
| 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 | +
|
51 | 77 | - name: Escape backticks in commit msg |
52 | 78 | env: |
53 | 79 | COMMIT_MSG: ${{ github.event.head_commit.message }} |
@@ -75,3 +101,17 @@ jobs: |
75 | 101 | git add . |
76 | 102 | git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from $SYNC_SRC]" || true |
77 | 103 | 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