Skip to content

Commit ef3885c

Browse files
committed
fixed CI/CD
1 parent 31fc86a commit ef3885c

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/ngx-css.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ jobs:
2424
2525
- name: Sync SCSS folder to ngx-css
2626
run: |
27-
# Clone the target repository
28-
git clone [email protected]:WebArtWork/ngx-css.git target-repo
29-
30-
# Copy updated files from client/src/scss
31-
rsync -av --delete client/src/scss/ target-repo/
32-
33-
# Commit and push changes to the target repository
34-
cd target-repo
27+
git config --global user.name "github-actions[bot]"
28+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
29+
git clone [email protected]:WebArtWork/ngx-css.git ngx-css
30+
rsync -av --delete client/src/scss/ ngx-css/
31+
cd ngx-css
3532
git add .
3633
git commit -m "Update SCSS files from source repository" || echo "No changes to commit"
3734
git push --force
35+
36+
- name: Clean up SSH
37+
run: |
38+
rm -f ~/.ssh/id_rsa
39+
rm -f ~/.ssh/known_hosts

client/src/scss/Readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
1. block -> "header"
6262
2. element -> "header__link"
6363
3. modifier -> "_active"
64+
6465
#### b. SCSS
6566
1. block -> "header {}"
6667
2. element -> "&__link {}"

0 commit comments

Comments
 (0)