Skip to content

Commit

Permalink
Try 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Feb 27, 2024
1 parent 0a7f1de commit 364654a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/generate-single-openapi-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
commit-single-spec:
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 @@ -45,12 +44,12 @@ jobs:
- name: Commit single-file Onfido OpenAPI specifications
run: |
git --version
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git diff
if [ "$(git status -s)" != "" ];
if [ -z "$(git status --porcelain=v1 generated/artifacts)" ];
then
git add generated/artifacts && \
git commit -m "Update single file spec" && \
git push
echo "no change detected"
else
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git status generated/artifacts
git commit -m "Update single file spec" -a generated/artifacts
fi

0 comments on commit 364654a

Please sign in to comment.