Skip to content

Commit

Permalink
Update rm-non-svg.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ramajoballester authored May 19, 2024
1 parent 9645cda commit 9c2eb2d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/rm-non-svg.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: rm-non-svg
name: Remove non-SVG files

on:
workflow_run:
Expand All @@ -15,15 +15,19 @@ jobs:
uses: actions/checkout@v3
with:
ref: traffic
fetch-depth: 0 # Ensure the entire history is fetched

- name: Set up Git user
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Remove non-SVG files
run: |
find . -type f ! -name '*.svg' -delete
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Remove all files except .svg files" || echo "No changes to commit"
Expand Down

0 comments on commit 9c2eb2d

Please sign in to comment.