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:
Fini Jastrow 2024-02-29 17:26:59 +01:00
parent fd306215ad
commit b64ee780f6

View file

@ -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