mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-25 03:32:02 +02:00
CI: Fix patch-em-all: Purge destination dirs if possible
[why] The purged (obsolete) files are still existing after release. [how] We restore the deleted files before it adds the new ones. Just delete all font files and then download all the release files (all newly created fonts). `git add` on a directory will remove all missing files. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
6e392c0b35
commit
2050b4dc16
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -211,6 +211,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Prepare repo (clear out old and obsolete fonts)
|
||||||
|
run: |
|
||||||
|
cd -- "$GITHUB_WORKSPACE/patched-fonts"
|
||||||
|
find . -name "*.[to]tf" -exec rm {} \;
|
||||||
|
|
||||||
- name: Download patched fonts from build
|
- name: Download patched fonts from build
|
||||||
id: download-patched-fonts
|
id: download-patched-fonts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
@ -218,9 +223,9 @@ jobs:
|
|||||||
name: patched-fonts
|
name: patched-fonts
|
||||||
path: .
|
path: .
|
||||||
|
|
||||||
- uses: EndBug/add-and-commit@v7
|
- uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
add: 'patched-fonts'
|
add: 'patched-fonts'
|
||||||
message: Rebuilds patched fonts
|
message: Rebuilds patched fonts
|
||||||
committer_name: GitHub Actions
|
committer_name: GitHub Actions
|
||||||
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|
||||||
|
Loading…
x
Reference in New Issue
Block a user