Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Feb 26, 2024
1 parent e83b112 commit 0a7f1de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/generate-single-openapi-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
name: artifacts-${{ github.workflow }}-${{ github.run_id }}-${{ github.run_number }}
path: generated/artifacts
commit-single-spec:
if: github.event_name == 'push'
runs-on: ubuntu-latest
needs: build-single-spec
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v2
Expand All @@ -48,6 +48,9 @@ jobs:
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git diff
git status --porcelain && git add generated/artifacts && \
git commit -m "Update single file spec" && \
git push
if [ "$(git status -s)" != "" ];
then
git add generated/artifacts && \
git commit -m "Update single file spec" && \
git push
fi
2 changes: 1 addition & 1 deletion generator/script/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ do

( cat generator/configuration/common.yaml && echo &&
cat generator/configuration/${GENERATOR}.yaml ) | \
API_VERSION=1.6.0 GENERATOR=${GENERATOR} envsubst >| \
GENERATOR=${GENERATOR} envsubst >| \
${GENERATED_CONFIG_FILE}

echo "Configuration for generator ${GENERATOR} built."
Expand Down

0 comments on commit 0a7f1de

Please sign in to comment.