Skip to content

Commit cb34dfe

Browse files
authored
Use reusable GHAs from the .github repo (#63)
Signed-off-by: Arrobo, Gabriel <[email protected]>
1 parent 60aad44 commit cb34dfe

File tree

3 files changed

+55
-196
lines changed

3 files changed

+55
-196
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,55 +13,29 @@ on:
1313

1414
jobs:
1515
doc8:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v5
19-
20-
- name: Set up Python
21-
uses: actions/setup-python@v6
22-
with:
23-
python-version: 3.11
24-
25-
- run: make doc8
16+
uses: omec-project/.github/.github/workflows/make-target-reuse.yml@main
17+
with:
18+
branch_name: ${{ github.ref }}
19+
target: doc8
2620

2721
spell-check:
28-
runs-on: ubuntu-latest
29-
steps:
30-
- uses: actions/checkout@v5
31-
32-
- name: Set up Python
33-
uses: actions/setup-python@v6
34-
with:
35-
python-version: 3.11
36-
37-
- run: make spelling
22+
uses: omec-project/.github/.github/workflows/make-target-reuse.yml@main
23+
with:
24+
branch_name: ${{ github.ref }}
25+
target: spelling
3826

3927
link-check:
40-
runs-on: ubuntu-latest
41-
steps:
42-
- uses: actions/checkout@v5
43-
44-
- name: Set up Python
45-
uses: actions/setup-python@v6
46-
with:
47-
python-version: 3.11
48-
49-
- run: make linkcheck
28+
uses: omec-project/.github/.github/workflows/make-target-reuse.yml@main
29+
with:
30+
branch_name: ${{ github.ref }}
31+
target: linkcheck
5032

5133
license-check:
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v5
55-
56-
- name: reuse lint
57-
uses: fsfe/reuse-action@v6
58-
59-
fossa-check:
60-
runs-on: ubuntu-latest
61-
steps:
62-
- uses: actions/checkout@v5
63-
64-
- name: FOSSA scan
65-
uses: fossa-contrib/fossa-action@v3
66-
with:
67-
fossa-api-key: 0c3bbcdf20e157bbd487dae173751b28
34+
uses: omec-project/.github/.github/workflows/license-check.yml@main
35+
with:
36+
branch_name: ${{ github.ref }}
37+
38+
fossa-scan:
39+
uses: omec-project/.github/.github/workflows/fossa-scan.yml@main
40+
with:
41+
branch_name: ${{ github.ref }}

.github/workflows/publish.yml

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

.github/workflows/push.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright 2024 Intel Corporation
3+
4+
name: Publish Docs Workflow
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
validate:
14+
uses: omec-project/.github/.github/workflows/validate.yml@main
15+
with:
16+
branch_name: ${{ github.ref }}
17+
18+
tag-github:
19+
uses: omec-project/.github/.github/workflows/tag-github.yml@main
20+
secrets: inherit
21+
22+
update-version:
23+
needs: tag-github
24+
uses: omec-project/.github/.github/workflows/update-version.yml@main
25+
with:
26+
changed: ${{ needs.tag-github.outputs.changed }}
27+
version: ${{ needs.tag-github.outputs.version }}
28+
secrets: inherit
29+
30+
publish:
31+
if: github.repository_owner == 'omec-project'
32+
uses: omec-project/.github/.github/workflows/publish-docs.yml@main
33+
secrets: inherit
34+
with:
35+
branch_name: ${{ github.ref }}

0 commit comments

Comments
 (0)