Skip to content

Commit 312de01

Browse files
committed
checkout action contents
1 parent 9df759c commit 312de01

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ been changed.
99

1010
This repository has two action files:
1111

12-
| File | Description |
13-
| ------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
14-
| [`./action.yml`](./action.yml) | This composite action calls on other Khan actions to prepare a list of changed files. |
15-
| [`./actions/verify-per-package/action.yml`](./actions/verify-per-package/action.yml) | This ts action contains its logic to [`./src/main.ts`](./src/main.ts). It checks for packages corresponding to changed files, then determines if there is a match for each in changesets. |
12+
| File | Description |
13+
| -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
14+
| [`action.yml`](./action.yml) | This composite action calls on other Khan actions to prepare a list of changed files. |
15+
| [`changeset-per-package/action.yml`](./changeset-per-package/action.yml) | This ts action contains its logic to [`./src/main.ts`](./src/main.ts). It checks for packages corresponding to changed files, then determines if there is a match for each in changesets. |
1616

1717
## When Making Changes
1818

action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,16 @@ runs:
4444
extensions: ${{ inputs.exclude_extensions }}
4545
globs: ${{ inputs.exclude_globs }}
4646

47+
# Checkout necessary files to run next action
48+
- uses: actions/checkout@v4
49+
with:
50+
repository: Khan/changeset-per-package
51+
path: changeset-per-package
52+
sparse-checkout: |
53+
changeset-per-package/*
54+
sparse-checkout-cone-mode: false
55+
4756
- name: Veryify changeset entries
48-
uses: ./actions/verify-per-package
57+
uses: ./changeset-per-package/changeset-per-package
4958
with:
5059
changed_files: ${{ steps.match.outputs.filtered }}
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"format:write": "prettier --write **/*.ts",
3030
"format:check": "prettier --check **/*.ts",
3131
"lint": "npx eslint . -c ./.github/linters/.eslintrc.yml",
32-
"package": "ncc build src/index.ts -o actions/verify-per-package/dist --license licenses.txt",
32+
"package": "ncc build src/index.ts -o changeset-per-package/dist --license licenses.txt",
3333
"package:watch": "yarn package -- --watch",
3434
"test": "(jest && make-coverage-badge --output-path ./badges/coverage.svg) || make-coverage-badge --output-path ./badges/coverage.svg",
3535
"all": "yarn format:write && yarn lint && yarn test && yarn package"

0 commit comments

Comments
 (0)