Skip to content

Commit e19c92c

Browse files
authored
chore: add .yml to supported extensions (#14)
1 parent 9c0bec9 commit e19c92c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
## Usage
1515

1616
```yaml
17-
uses: paperspace/deploy-action@v1.2
17+
uses: paperspace/deploy-action@v1.4
1818
env:
1919
PAPERSPACE_API_KEY: ${{ secrets.PAPERSPACE_API_KEY }}
2020
with:
@@ -24,7 +24,7 @@ with:
2424
You can also pass the api key as an input.
2525
2626
```yaml
27-
uses: paperspace/deploy-action@v1.2
27+
uses: paperspace/deploy-action@v1.4
2828
with:
2929
apiKey: ${{ secrets.PAPERSPACE_API_KEY }}
3030
projectId: p28rlnvnw51
@@ -46,7 +46,7 @@ resources:
4646

4747

4848
```yaml
49-
uses: paperspace/deploy-action@v1.2
49+
uses: paperspace/deploy-action@v1.4
5050
env:
5151
PAPERSPACE_API_KEY: ${{ secrets.PAPERSPACE_API_KEY }}
5252
with:
@@ -70,7 +70,7 @@ jobs:
7070
steps:
7171
- uses: actions/checkout@v3
7272
73-
- uses: paperspace/deploy-action@v1.2
73+
- uses: paperspace/deploy-action@v1.4
7474
name: Deploy Staging
7575
id: deploy
7676
env:
@@ -119,7 +119,7 @@ jobs:
119119
tags: |
120120
paperspace/deployment-fixture:${{ steps.docker-tag-name.outputs.DOCKER_TAG_NAME }}
121121
122-
- uses: paperspace/deploy-action@v1.2
122+
- uses: paperspace/deploy-action@v1.4
123123
name: Deploy to Paperspace
124124
id: deploy
125125
env:
@@ -135,7 +135,7 @@ jobs:
135135
You may supply an optional relative path to a Paperspace config as follows:
136136

137137
```yaml
138-
- uses: paperspace/deploy-action@v1.2
138+
- uses: paperspace/deploy-action@v1.4
139139
name: Deploy action
140140
id: deploy
141141
env:

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ const parseByExt = (filePath: string) => {
205205
const content = fs.readFileSync(filePath, "utf8");
206206

207207
switch (ext) {
208+
case ".yml":
209+
return YAML.parse(content);
208210
case ".yaml":
209211
return YAML.parse(content);
210212
case ".toml":

0 commit comments

Comments
 (0)