Skip to content

Commit

Permalink
CI: Fixing the Fix
Browse files Browse the repository at this point in the history
First checkout the base, then nested stuff...

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
  • Loading branch information
Finii committed Feb 29, 2024
1 parent b64ee78 commit c78ca63
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 29 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/casks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ jobs:
name: Create casks
runs-on: ubuntu-latest
steps:
- name: Fetch stuff (no checkout)
- name: Fetch stuff
uses: actions/checkout@v4
with:
sparse-checkout: |
bin/scripts
sparse-checkout: bin/scripts
- name: Fetch release artifacts
run: |
cd bin/scripts
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,19 @@ jobs:
name: Update gh-pages contributors
runs-on: ubuntu-latest
steps:
- name: Get details and script from default branch
- name: Fetch pages from gh-pages
uses: actions/checkout@v4
with:
sparse-checkout: |
.
bin/scripts
path: master
- name: Fetch old from gh-pages
ref: gh-pages
- name: Get details and script from default branch
uses: actions/checkout@v4
with:
sparse-checkout: _posts
ref: gh-pages
sparse-checkout: bin/scripts
path: master
- name: Combine branches
run: |
mkdir -p bin
cp master/CONTRIBUTORS.md .
mkdir -p bin/scripts
mv master/bin/scripts bin/scripts
- name: Update the page
run: |
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/fontjson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,22 @@ jobs:
sync_pages:
runs-on: ubuntu-latest
steps:
- name: Fetch files
- name: Fetch gh-pages
uses: actions/checkout@v4
with:
sparse-checkout: bin/scripts/lib

- name: Prepare file
run: |
echo "Temp dir is /tmp"
cp bin/scripts/lib/fonts.json /tmp
ls -l /tmp/fonts.json
ref: gh-pages

- name: Fetch gh-pages
- name: Fetch files
uses: actions/checkout@v4
with:
ref: gh-pages
sparse-checkout: bin/scripts/lib
path: master

- name: Prepare file 2
- name: Prepare file
run: |
ls -l /tmp/fonts.json
mkdir temp_data
cp /tmp/fonts.json temp_data
cp master/bin/scripts/lib/fonts.json temp_data
ls -l temp_data
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ jobs:
if: ${{ github.repository_owner == 'ryanoasis' }}

steps:
- uses: actions/checkout@v4
- name: Fetch information
uses: actions/checkout@v4
with:
sparse-checkout: |
.
bin/scripts
sparse-checkout: bin/scripts

- name: Determine font matrix
id: set-matrix
Expand Down

0 comments on commit c78ca63

Please sign in to comment.