2023-02-24 23:50:10 +03:00
|
|
|
|
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 }}
|
2023-03-09 18:39:49 +03:00
|
|
|
|
+: tea.xyz/brewkit~0.7
|
2023-02-24 23:50:10 +03:00
|
|
|
|
# prevent pantry from reassigning TEA_PREFIX etc.
|
|
|
|
|
srcroot: null
|
|
|
|
|
|
|
|
|
|
- uses: teaxyz/pantry.core/.github/actions/cache@main
|
|
|
|
|
with:
|
|
|
|
|
cache-name: setup
|
|
|
|
|
|
|
|
|
|
- run: |
|
2023-03-09 18:39:49 +03:00
|
|
|
|
if test -d "${{ github.workspace }}"/projects; then
|
2023-02-24 23:50:10 +03:00
|
|
|
|
echo "TEA_PANTRY_PATH=${{ github.workspace }}" >> $GITHUB_ENV
|
2023-02-25 11:05:09 +03:00
|
|
|
|
fi
|
2023-02-24 23:50:10 +03:00
|
|
|
|
shell: sh
|