Skip to content

Commit f489aea

Browse files
committed
functional though crude
1 parent 56fbde9 commit f489aea

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

action.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: pkgx/dev
2+
description:
3+
runs `pkgx`’s `dev` tool making the resulting packages available to this job
4+
5+
inputs:
6+
path:
7+
required: false
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- uses: pkgxdev/setup@v1
13+
14+
- run: |
15+
if [ -n "${{ inputs.path }}" ]; then
16+
cd "${{ inputs.path }}"
17+
fi
18+
19+
for ln in $(pkgx --internal.activate "$PWD"); do
20+
case "$ln" in
21+
PATH=*)
22+
echo "$ln" | sed -e's/^PATH=//' | tr : \\n >> $GITHUB_PATH;;
23+
*=*)
24+
echo "$ln" >> $GITHUB_ENV;;
25+
esac
26+
done
27+
shell: bash

0 commit comments

Comments
 (0)