Skip to content

Commit a665a63

Browse files
authored
chore(ci): correct the direction of diff equations (#2396)
### Updates to .github/actions/file-diff - path renamed to head-path - diff-path renamed to base-path - this same renaming is carried throughout the file-diff/index.js file - before the summary table, I added a clarifying note - fixed the summary table to report on changes to the main file - more comments throughout
1 parent d8cba3e commit a665a63

File tree

5 files changed

+130
-99
lines changed

5 files changed

+130
-99
lines changed

.github/actions/file-diff/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ A GitHub Action for comparing compiled assets between branches.
44

55
## Inputs
66

7-
### `path`
7+
### `head-path`
88

99
**Required** Path to file or directory for file sizes analysis.
1010

11-
### `diff-path`
11+
### `base-path`
1212

1313
**Optional** Path to another directory against which to perform file comparisons.
1414

@@ -44,8 +44,8 @@ Total size of all files for this branch in bytes.
4444
name: Compare compiled output file size
4545
uses: "spectrum-tools/gh-action-file-diff"
4646
with:
47-
path: ${{ github.workspace }}/pull-request
48-
diff-path: ${{ github.workspace }}/base-branch
47+
head-path: ${{ github.workspace }}/pull-request
48+
base-path: ${{ github.workspace }}/base-branch
4949
file-glob-pattern: |
5050
components/*/dist/*.{css,json}
5151
components/*/dist/themes/*.css

.github/actions/file-diff/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: "File comparisons"
22
description: "Compares files between branches."
33
author: "spectrum-tools"
44
inputs:
5-
path:
5+
head-path:
66
description: "Path to file or directory for file sizes analysis."
77
required: false
88
default: ${{ github.workspace }}
9-
diff-path:
9+
base-path:
1010
description: "Optional path to another directory to perform file size diff against the provided path."
1111
required: false
1212
token:

0 commit comments

Comments
 (0)