Skip to content

Commit fe757ad

Browse files
committed
chore: move checkout to composite action and use global ref
1 parent a977c91 commit fe757ad

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/actions/deploy-gh-pages/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ inputs:
1212
runs:
1313
using: "composite"
1414
steps:
15+
- uses: actions/checkout@v4
1516
- name: Download all UI artifacts
1617
uses: actions/download-artifact@v4
1718
with:

.github/actions/find-openapi-spec/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ outputs:
1515
runs:
1616
using: "composite"
1717
steps:
18+
- uses: actions/checkout@v4
1819
- name: Find API spec files and build matrix
1920
id: build-matrix
2021
shell: bash

.github/actions/generate-swagger-ui/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ inputs:
2121
runs:
2222
using: "composite"
2323
steps:
24+
- uses: actions/checkout@v4
2425
- name: Create output folder if not present
2526
shell: bash
2627
run: mkdir -p "${{ inputs.output }}"

.github/workflows/example_data_models.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323
outputs:
2424
matrix: ${{ steps.build_matrix.outputs.matrix }}
2525
steps:
26-
- name: Checkout repository
27-
uses: actions/checkout@v4
2826
- name: Build matrix from API docs
2927
id: build_matrix
3028
# uses: ./.github/actions/find-openapi-spec
@@ -41,10 +39,9 @@ jobs:
4139
matrix:
4240
include: ${{ fromJson(needs.set-matrix.outputs.matrix) }}
4341
steps:
44-
- name: Checkout repository
45-
uses: actions/checkout@v4
4642
- name: Generate Swagger UI using composite action
47-
uses: ./.github/actions/generate-swagger-ui
43+
# uses: ./.github/actions/generate-swagger-ui
44+
uses: N5GEH/n5geh.data_models/.github/actions/generate-swagger-ui@main
4845
with:
4946
spec: ${{ matrix.spec }}
5047
base: ${{ matrix.base }}
@@ -56,10 +53,9 @@ jobs:
5653
runs-on: ubuntu-latest
5754
needs: generate-swagger-ui
5855
steps:
59-
- name: Checkout repository
60-
uses: actions/checkout@v4
6156
- name: Deploy the site via composite action
62-
uses: ./.github/actions/deploy-gh-pages
57+
# uses: ./.github/actions/deploy-gh-pages
58+
uses: N5GEH/n5geh.data_models/.github/actions/deploy-gh-pages@main
6359
with:
6460
OUTPUT_ROOT_PATH: ${{ env.OUTPUT_ROOT_PATH }}
6561
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)