Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve workflow to generate single-file OpenAPI spec #47

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: generate-single-openapi-spec
run-name: Build and publish single-file OpenAPI specs
name: single-file-openapi-spec
run-name: Generate and publish single-file OpenAPI specs
on:
push:
branches:
- master
paths-ignore:
- 'generated/artifacts/**'
pull_request:
branches:
- master
jobs:
build-single-spec:
name: Build single-file OpenAPI specifications
name: Generate single-file OpenAPI specifications
runs-on: ubuntu-latest
container:
image: openapitools/openapi-generator-cli:v7.3.0
Expand Down Expand Up @@ -43,6 +45,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_ACTION_ACCESS_TOKEN }}
ref: ${{ github.ref_name }}
- uses: actions/download-artifact@v4
with:
Expand All @@ -55,6 +58,7 @@ jobs:
then
echo "no change detected"
else
echo "changes detected"
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git status generated/artifacts
Expand Down