Skip to content

Commit fccac89

Browse files
authored
docs: update workflow instructions to yml
1 parent ef73363 commit fccac89

File tree

1 file changed

+31
-18
lines changed

1 file changed

+31
-18
lines changed

README.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,37 @@ Wraps the curl CLI to be used in Github Actions. See also [Github Action for wge
1212

1313
### Github Actions
1414
```
15-
action "curl" {
16-
uses = "wei/curl@master"
17-
args = "https://httpbin.org/get"
18-
}
19-
```
20-
21-
```
22-
action "curl" {
23-
uses = "wei/curl@master"
24-
args = "-X POST https://httpbin.org/post"
25-
}
26-
```
27-
28-
```
29-
action "curl" {
30-
uses = "wei/curl@master"
31-
args = "--upload-file .github/main.workflow https://transfer.sh/main.workflow"
32-
}
15+
on: push
16+
jobs:
17+
curl:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: curl
21+
uses: wei/curl@master
22+
args: https://httpbin.org/get
23+
```
24+
25+
```
26+
on: push
27+
jobs:
28+
curl:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: curl
32+
uses: wei/curl@master
33+
args: -X POST https://httpbin.org/post
34+
```
35+
36+
```
37+
on: push
38+
jobs:
39+
curl:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@master
43+
- name: curl
44+
uses: wei/curl@master
45+
args: --upload-file .github/workflows/main.yml https://transfer.sh/main-workflow.yml
3346
```
3447

3548
### Docker

0 commit comments

Comments
 (0)