Skip to content

Commit

Permalink
fixed CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
CrackerakiUA committed Nov 27, 2024
1 parent 31fc86a commit ef3885c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ngx-css.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ jobs:
- name: Sync SCSS folder to ngx-css
run: |
# Clone the target repository
git clone [email protected]:WebArtWork/ngx-css.git target-repo
# Copy updated files from client/src/scss
rsync -av --delete client/src/scss/ target-repo/
# Commit and push changes to the target repository
cd target-repo
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git clone [email protected]:WebArtWork/ngx-css.git ngx-css
rsync -av --delete client/src/scss/ ngx-css/
cd ngx-css
git add .
git commit -m "Update SCSS files from source repository" || echo "No changes to commit"
git push --force
- name: Clean up SSH
run: |
rm -f ~/.ssh/id_rsa
rm -f ~/.ssh/known_hosts
1 change: 1 addition & 0 deletions client/src/scss/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
1. block -> "header"
2. element -> "header__link"
3. modifier -> "_active"

#### b. SCSS
1. block -> "header {}"
2. element -> "&__link {}"
Expand Down

0 comments on commit ef3885c

Please sign in to comment.