mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
fix copying non-head pantry
This commit is contained in:
parent
e828abd212
commit
e0cfd65fe2
1 changed files with 14 additions and 6 deletions
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
|
@ -67,9 +67,12 @@ jobs:
|
|||
- name: prepare pantries
|
||||
run: |
|
||||
tea --sync
|
||||
cp -Rv $GITHUB_WORKSPACE/pantry/ /opt/tea.xyz/var/pantry || true
|
||||
# ^^ || true because I can’t figure out how to stop `cp` erroring
|
||||
# because it doesn’t want to copy symlinks that already exist, eg. `src`
|
||||
find $GITHUB_WORKSPACE/pantry \
|
||||
-not -type l \
|
||||
-mindepth 1 \
|
||||
-maxdepth 1 \
|
||||
-print0 | \
|
||||
xargs -0 -I{} cp -Rv {} /opt/tea.xyz/var/pantry
|
||||
|
||||
- run: pantry/scripts/sort.ts ${{ inputs.projects }}
|
||||
id: sorted
|
||||
|
@ -139,9 +142,14 @@ jobs:
|
|||
prefix: ${{ github.workspace }}
|
||||
|
||||
- name: overlay this pantry
|
||||
run: cp -Rv $GITHUB_WORKSPACE/pantry/ /opt/tea.xyz/var/pantry || true
|
||||
# ^^ || true because I can’t figure out how to stop `cp` erroring
|
||||
# because it doesn’t want to copy symlinks that already exist, eg. `src`
|
||||
run: |
|
||||
tea --sync
|
||||
find $GITHUB_WORKSPACE/pantry \
|
||||
-not -type l \
|
||||
-mindepth 1 \
|
||||
-maxdepth 1 \
|
||||
-print0 | \
|
||||
xargs -0 -I{} cp -Rv {} $GITHUB_WORKSPACE/tea.xyz/var/pantry
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue