Skip to content

Commit

Permalink
chore: add .yml to supported extensions (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
brodeyn authored Dec 29, 2023
1 parent 9c0bec9 commit e19c92c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
## Usage

```yaml
uses: paperspace/deploy-action@v1.2
uses: paperspace/deploy-action@v1.4
env:
PAPERSPACE_API_KEY: ${{ secrets.PAPERSPACE_API_KEY }}
with:
Expand All @@ -24,7 +24,7 @@ with:
You can also pass the api key as an input.
```yaml
uses: paperspace/deploy-action@v1.2
uses: paperspace/deploy-action@v1.4
with:
apiKey: ${{ secrets.PAPERSPACE_API_KEY }}
projectId: p28rlnvnw51
Expand All @@ -46,7 +46,7 @@ resources:


```yaml
uses: paperspace/deploy-action@v1.2
uses: paperspace/deploy-action@v1.4
env:
PAPERSPACE_API_KEY: ${{ secrets.PAPERSPACE_API_KEY }}
with:
Expand All @@ -70,7 +70,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: paperspace/deploy-action@v1.2
- uses: paperspace/deploy-action@v1.4
name: Deploy Staging
id: deploy
env:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
tags: |
paperspace/deployment-fixture:${{ steps.docker-tag-name.outputs.DOCKER_TAG_NAME }}
- uses: paperspace/deploy-action@v1.2
- uses: paperspace/deploy-action@v1.4
name: Deploy to Paperspace
id: deploy
env:
Expand All @@ -135,7 +135,7 @@ jobs:
You may supply an optional relative path to a Paperspace config as follows:

```yaml
- uses: paperspace/deploy-action@v1.2
- uses: paperspace/deploy-action@v1.4
name: Deploy action
id: deploy
env:
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ const parseByExt = (filePath: string) => {
const content = fs.readFileSync(filePath, "utf8");

switch (ext) {
case ".yml":
return YAML.parse(content);
case ".yaml":
return YAML.parse(content);
case ".toml":
Expand Down

0 comments on commit e19c92c

Please sign in to comment.