forked from seeebiii/redoc-cli-github-action
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.11 KB
/
main.yml
File metadata and controls
43 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: test-deploy
# Run on each push to main
on:
push:
branches: [ main ]
jobs:
test_job:
runs-on: ubuntu-latest
name: Testing private usage
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v4
- name: redocly cli test
uses: ./ # Uses an action in the root directory
with:
args: 'build-docs test/petstore.yml -o petstore.html'
- name: check result
run: |
ls -al
test -f petstore.html || (echo "Missing petstore.html from previous step." && exit 1)
test_job_2:
runs-on: ubuntu-latest
name: Testing public name
steps:
- name: Checkout
uses: actions/checkout@v4
# use the public name of the action
- name: redoc-cli test
uses: DeltaLaboratory/redocly-cli-action@v1.0.0
with:
args: 'build-docs test/petstore.yml -o petstore.html'
- name: check result
run: |
ls -al
test -f petstore.html || (echo "Missing petstore.html from previous step." && exit 1)