Skip to content

Commit

Permalink
Re-add git push
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Feb 27, 2024
1 parent 87ed4b9 commit ee5a452
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/generate-single-openapi-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Validate single-file OpenAPI specification
run: |
$OPENAPI_GENERATOR_COMMAND validate -i openapi.yaml
- name: Build single-file OpenAPI specifications
- name: Refresh single-file OpenAPI specifications
run: |
./generator/script/generate.sh \
generator/configuration/openapi.yaml \
Expand All @@ -35,14 +35,14 @@ jobs:
commit-single-spec:
runs-on: ubuntu-latest
needs: build-single-spec
if: ${{ github.event.pull_request.merged || github.repository == 'onfido/onfido-openapi-spec' }}
if: ${{ github.event.pull_request.merged && github.repository == 'onfido/onfido-openapi-spec' }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: artifacts-${{ github.workflow }}-${{ github.run_id }}-${{ github.run_number }}
path: generated/artifacts
- name: Commit single-file OpenAPI specifications
- name: Commit and push single-file OpenAPI specifications
run: |
git --version
if [ -z "$(git status --porcelain=v1 generated/artifacts)" ];
Expand All @@ -53,4 +53,5 @@ jobs:
git config user.email "<>"
git status generated/artifacts
git commit -m "Single file specifications refresh" generated/artifacts
git push
fi

0 comments on commit ee5a452

Please sign in to comment.