Skip to content

Commit aac9a86

Browse files
Merge pull request #18 from andrii-bodnar/Version-0.0.2
Version 0.0.2
2 parents 38ad6da + dbf2004 commit aac9a86

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

EXAMPLES.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
### List languages
1818

1919
```yaml
20-
- uses: andrii-bodnar/[email protected].1
20+
- uses: andrii-bodnar/[email protected].2
2121
name: Make Crowdin Request
2222
with:
2323
route: GET /languages
@@ -29,7 +29,7 @@
2929
### Get specific language
3030
3131
```yaml
32-
- uses: andrii-bodnar/[email protected].1
32+
- uses: andrii-bodnar/[email protected].2
3333
name: Get language
3434
with:
3535
route: GET /languages/{languageId}
@@ -42,7 +42,7 @@
4242
### Using query parameters
4343
4444
```yaml
45-
- uses: andrii-bodnar/[email protected].1
45+
- uses: andrii-bodnar/[email protected].2
4646
name: List languages with limit
4747
with:
4848
route: GET /languages
@@ -61,7 +61,7 @@ The value of the `query` option should be a valid JSON object.
6161
### List project files
6262

6363
```yaml
64-
- uses: andrii-bodnar/[email protected].1
64+
- uses: andrii-bodnar/[email protected].2
6565
name: List Files with filter
6666
with:
6767
route: GET /projects/{projectId}/files
@@ -78,7 +78,7 @@ The value of the `query` option should be a valid JSON object.
7878
### Get project progress
7979

8080
```yaml
81-
- uses: andrii-bodnar/[email protected].1
81+
- uses: andrii-bodnar/[email protected].2
8282
name: Get Project Progress
8383
id: project_progress
8484
with:
@@ -98,7 +98,7 @@ Please note if you want to use the action output like in this example, you need
9898
### Add string to a project file
9999

100100
```yaml
101-
- uses: andrii-bodnar/[email protected].1
101+
- uses: andrii-bodnar/[email protected].2
102102
name: Add String
103103
with:
104104
route: POST /projects/{projectId}/strings
@@ -129,7 +129,7 @@ There are two ways of passing the storage body:
129129
- passing the file content as a `body` value
130130

131131
```yaml
132-
- uses: andrii-bodnar/[email protected].1
132+
- uses: andrii-bodnar/[email protected].2
133133
name: Add Storage
134134
with:
135135
route: POST /storages
@@ -148,7 +148,7 @@ There are two ways of passing the storage body:
148148
To add a file to a Crowdin project you need two requests: Add Storage, and Add File:
149149

150150
```yaml
151-
- uses: andrii-bodnar/[email protected].1
151+
- uses: andrii-bodnar/[email protected].2
152152
name: Add Storage
153153
id: add_storage
154154
with:
@@ -160,7 +160,7 @@ To add a file to a Crowdin project you need two requests: Add Storage, and Add F
160160
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
161161
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }} # Optional
162162
163-
- uses: andrii-bodnar/[email protected].1
163+
- uses: andrii-bodnar/[email protected].2
164164
name: Add File
165165
if: ${{ success() }}
166166
with:
@@ -183,7 +183,7 @@ In this case, we've used the `add_storage` step output to provide the `storageId
183183
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.
184184

185185
```yaml
186-
- uses: andrii-bodnar/[email protected].1
186+
- uses: andrii-bodnar/[email protected].2
187187
name: Build Project Translation
188188
id: build_project
189189
with:
@@ -193,7 +193,7 @@ The translations downloading process involves making the following requests: Bui
193193
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
194194
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }} # Optional
195195
196-
- uses: andrii-bodnar/[email protected].1
196+
- uses: andrii-bodnar/[email protected].2
197197
name: Check Project Build Status
198198
id: check_build_status
199199
with:
@@ -205,7 +205,7 @@ The translations downloading process involves making the following requests: Bui
205205
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
206206
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }} # Optional
207207
208-
- uses: andrii-bodnar/[email protected].1
208+
- uses: andrii-bodnar/[email protected].2
209209
name: Download Project Translations
210210
with:
211211
route: GET /projects/{projectId}/translations/builds/{buildId}/download

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: actions/checkout@v3
4646

4747
- name: Make Crowdin Request
48-
uses: andrii-bodnar/[email protected].1
48+
uses: andrii-bodnar/[email protected].2
4949
with:
5050
route: GET /languages
5151
env:

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "crowdin-request-action",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"private": true,
55
"description": "A GitHub Action to send arbitrary requests to Crowdin's REST API",
66
"main": "lib/main.js",

src/requester.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class Requester {
178178
return {
179179
headers: {
180180
'Content-Type': contentType,
181-
'User-Agent': `crowdin-request-action/0.0.1 axios/${axios.VERSION}`,
181+
'User-Agent': `crowdin-request-action/0.0.2 axios/${axios.VERSION}`,
182182
Authorization: `Bearer ${this.credentialsConfig.token}`,
183183
...Object.fromEntries(headers)
184184
}

0 commit comments

Comments
 (0)