mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-12 09:41:47 +02:00
CI: Fixup: contributors workflow
[why] After changing from checkout-files to checkout we can not have two branches in one place. [how] Check the branches out in different directories and merge the needed files afterwards. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
fd306215ad
commit
b64ee780f6
1 changed files with 13 additions and 2 deletions
15
.github/workflows/contributors.yml
vendored
15
.github/workflows/contributors.yml
vendored
|
@ -10,16 +10,27 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
create-casks:
|
||||
do_update:
|
||||
name: Update gh-pages contributors
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Get details and script from default branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.
|
||||
bin/scripts
|
||||
path: master
|
||||
- name: Fetch old from gh-pages
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: _posts
|
||||
ref: gh-pages
|
||||
- name: Combine branches
|
||||
run: |
|
||||
cp master/CONTRIBUTORS.md .
|
||||
mkdir -p bin/scripts
|
||||
mv master/bin/scripts bin/scripts
|
||||
- name: Update the page
|
||||
run: |
|
||||
cd bin/scripts
|
||||
|
|
Loading…
Reference in a new issue