forked from MystenLabs/sui
/
action.yml
22 lines (22 loc) · 841 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Detect Changes in Turbo Workspace
description: Defines variables indicating the parts of the turbo workspace have changed
outputs:
packages:
description: A list of packages that have changed.
value: ${{ steps.changes.outputs.packages }}
runs:
using: composite
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # pin@v3.0.0
with:
version: 9.1.1
- id: changes
name: Detect changes
shell: bash
run: echo "packages=$(pnpm --silent dlx turbo run build --filter="...[origin/main]" --dry=json | jq -c ".packages")" >> $GITHUB_OUTPUT
- name: Print changes for easy debugging
shell: bash
run: echo ${{ steps.changes.outputs.packages }}