/
action.yml
78 lines (77 loc) · 2.48 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Detect Changes
description: Defines variables indicating the parts of the code that changed
outputs:
isDoc:
description: True when changes happened to some documentation
value: "${{ steps.diff.outputs.isDoc }}"
isOldDoc:
description: True when changes happened to old doc folder
value: "${{ steps.diff.outputs.isOldDoc }}"
isRust:
description: True when changes happened to the Rust code
value: "${{ steps.diff.outputs.isRust }}"
isMove:
description: True when changes happened to the Move code
value: "${{ steps.diff.outputs.isMove }}"
isSolidity:
description: True when changes happened to the Solidity code
value: "${{ steps.diff.outputs.isSolidity }}"
isReleaseNotesEligible:
description: True when changes happened in Release Notes eligible paths
value: "${{ steps.diff.outputs.isReleaseNotesEligible }}"
isMoveAutoFormatter:
description: True when changes happened in MoveAutoFormatter code
value: "${{ steps.diff.outputs.isMoveAutoFormatter }}"
runs:
using: composite
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1
- name: Detect Changes
uses: dorny/paths-filter@v2.10.2
id: diff
with:
filters: |
isRust:
- 'consensus/**'
- 'crates/**'
- 'external-crates/**'
- 'narwhal/**'
- 'sui-execution/**'
- '.github/workflows/codecov.yml'
- '.github/workflows/rust.yml'
- '.github/workflows/external.yml'
- 'Cargo.lock'
- 'Cargo.toml'
- 'deny.toml'
- 'rust-toolchain.toml'
- 'rustfmt.toml'
isDoc:
- 'docs/content/**'
- '*.mdx'
- '.github/workflows/docs.yml'
isOldDoc:
- 'doc/**'
- '*.md'
isMove:
- 'crates/sui-framework/**'
- 'crates/sui-framework-build/**'
- 'crates/sui-framework-tests/**'
- 'crates/sui_move/**'
- 'Cargo.toml'
- 'examples/**'
- 'sui_programmability/**'
isSolidity:
- 'bridge/evm/**'
isReleaseNotesEligible:
- 'consensus/**'
- 'crates/**'
- 'dashboards/**'
- 'doc/**'
- 'docker/**'
- 'external-crates/**'
- 'kiosk/**'
- 'narwhal/**'
- 'nre/**'
- 'sui-execution/**'
isMoveAutoFormatter:
- 'external-crates/move/crates/move-analyzer/prettier-plugin/**'