Skip to content

Commit

Permalink
chore: version 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Oct 3, 2024
1 parent bf7b19f commit ee7a2af
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
### List languages

```yaml
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Make Crowdin Request
with:
route: GET /languages
Expand All @@ -29,7 +29,7 @@
### Get specific language
```yaml
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Get language
with:
route: GET /languages/{languageId}
Expand All @@ -42,7 +42,7 @@
### Using query parameters
```yaml
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: List languages with limit
with:
route: GET /languages
Expand All @@ -61,7 +61,7 @@ The value of the `query` option should be a valid JSON object.
### List project files

```yaml
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: List Files with filter
with:
route: GET /projects/{projectId}/files
Expand All @@ -78,7 +78,7 @@ The value of the `query` option should be a valid JSON object.
### Get project progress

```yaml
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Get Project Progress
id: project_progress
with:
Expand All @@ -98,7 +98,7 @@ Please note if you want to use the action output like in this example, you need
### Add string to a project file

```yaml
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Add String
with:
route: POST /projects/{projectId}/strings
Expand Down Expand Up @@ -129,7 +129,7 @@ There are two ways of passing the storage body:
- passing the file content as a `body` value

```yaml
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Add Storage
with:
route: POST /storages
Expand All @@ -148,7 +148,7 @@ There are two ways of passing the storage body:
To add a file to a Crowdin project you need two requests: Add Storage, and Add File:

```yaml
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Add Storage
id: add_storage
with:
Expand All @@ -160,7 +160,7 @@ To add a file to a Crowdin project you need two requests: Add Storage, and Add F
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }} # Optional
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Add File
if: ${{ success() }}
with:
Expand All @@ -183,7 +183,7 @@ In this case, we've used the `add_storage` step output to provide the `storageId
The translations downloading process involves making the following requests: Build project Translation, Check Project Build Status until the status will be finished, and Download Project Translations.

```yaml
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Build Project Translation
id: build_project
with:
Expand All @@ -193,7 +193,7 @@ The translations downloading process involves making the following requests: Bui
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }} # Optional
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Check Project Build Status
id: check_build_status
with:
Expand All @@ -205,7 +205,7 @@ The translations downloading process involves making the following requests: Bui
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }} # Optional
- uses: andrii-bodnar/crowdin-request-action@0.2.0
- uses: andrii-bodnar/crowdin-request-action@0.3.0
name: Download Project Translations
with:
route: GET /projects/{projectId}/translations/builds/{buildId}/download
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: actions/checkout@v4

- name: Make Crowdin Request
uses: andrii-bodnar/crowdin-request-action@0.2.0
uses: andrii-bodnar/crowdin-request-action@0.3.0
with:
route: GET /languages
env:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crowdin-request-action",
"version": "0.2.0",
"version": "0.3.0",
"private": true,
"description": "A GitHub Action to send arbitrary requests to Crowdin's REST API",
"main": "lib/main.js",
Expand Down

0 comments on commit ee7a2af

Please sign in to comment.