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