Skip to content

Commit a95a6e8

Browse files
committed
Add workflow instead of action
1 parent 7e1d173 commit a95a6e8

File tree

3 files changed

+41
-62
lines changed

3 files changed

+41
-62
lines changed

.github/actions/pulp-docs-ci/action.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,7 @@ concurrency:
99

1010
jobs:
1111
docs:
12-
runs-on: "ubuntu-latest"
13-
steps:
14-
- uses: "actions/checkout@v4"
15-
with:
16-
path: "pulp-docs"
17-
fetch-depth: 0
18-
19-
- run: |
20-
echo "$PWD"
21-
ls
22-
23-
- uses: "./pulp-docs/.github/actions/pulp-docs-ci"
24-
with:
25-
repository_name: "pulp-docs"
12+
uses: ./.github/workflows/pulp-docs-ci.yml
2613

2714
# tests:
2815
# uses: "./.github/workflows/tests.yml"

.github/workflows/pulp-docs-ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: 'Docs CI'
2+
on:
3+
workflow_call:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
# The caller repository and context is used
11+
- name: Checkout CI repository
12+
if: ${{ github.event.repository.name != 'pulp-docs' }}
13+
uses: actions/checkout@v4
14+
with:
15+
path: ${{ github.event.repository.name }}
16+
17+
- name: Checkout pulp-docs repository
18+
uses: actions/checkout@v4
19+
with:
20+
repository: "pulp/pulp-docs"
21+
path: pulp-docs
22+
ref: "rewrite-as-mkdocs-plugin"
23+
fetch-depth: 0
24+
25+
- uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.12"
28+
29+
- name: "Install pulp-docs"
30+
run: |
31+
cd pulp-docs
32+
pip install --upgrade pip
33+
pip install -r doc_requirements.txt
34+
35+
- name: "Build Docs"
36+
run: |
37+
echo $PWD
38+
cd pulp-docs
39+
pulp-docs fetch --dest /tmp/pulp-docs-tmp
40+
pulp-docs build --path pulp-docs@..:${{ github.event.repository.name }}@..:/tmp/pulp-docs-tmp

0 commit comments

Comments
 (0)