mirror of
https://github.com/ivabus/pantry
synced 2024-11-15 04:55:08 +03:00
1c809689b4
* fix(bottle.yml) * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * use @main action definition
39 lines
959 B
YAML
39 lines
959 B
YAML
name: +tea.xyz/brewkit
|
||
description: sets up tea, tea.xyz/brewkit & caching
|
||
|
||
# inputs and outputs are `teaxyz/setup` passthrough
|
||
|
||
inputs:
|
||
prefix:
|
||
description: >
|
||
Where tea stows its packages.
|
||
Defaults to `$HOME/.tea`.
|
||
required: false
|
||
outputs:
|
||
version:
|
||
description: Your project’s version.
|
||
value: ${{ steps.tea.outputs.version }}
|
||
prefix:
|
||
description: The prefix you specified.
|
||
value: ${{ steps.tea.outputs.prefix }}
|
||
|
||
runs:
|
||
using: composite
|
||
steps:
|
||
- uses: teaxyz/setup@v0
|
||
id: tea
|
||
with:
|
||
prefix: ${{ inputs.prefix }}
|
||
+: tea.xyz/brewkit
|
||
# prevent pantry from reassigning TEA_PREFIX etc.
|
||
srcroot: null
|
||
|
||
- uses: teaxyz/pantry.core/.github/actions/cache@main
|
||
with:
|
||
cache-name: setup
|
||
|
||
- run: |
|
||
if test -d "{{ github.workspace }}"/projects; then
|
||
echo "TEA_PANTRY_PATH=${{ github.workspace }}" >> $GITHUB_ENV
|
||
fi
|
||
shell: sh
|