remove push
This commit is contained in:
parent
1f5231d905
commit
48b3dea256
2 changed files with 0 additions and 2338 deletions
9
.github/workflows/swagger.yml
vendored
9
.github/workflows/swagger.yml
vendored
|
@ -29,15 +29,6 @@ jobs:
|
|||
id: versionNumber
|
||||
run: echo "::set-output name=versionNumber::$(./gradlew printVersion --quiet | tail -1)"
|
||||
|
||||
- name: Commit and push if it changed
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add -A
|
||||
git diff --quiet && git diff --staged --quiet || git commit -m "Updated Swagger documentation"
|
||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
||||
git push
|
||||
|
||||
- name: Upload Swagger Documentation to SwaggerHub
|
||||
run: |
|
||||
curl -X POST -H "Authorization: ${SWAGGERHUB_API_KEY}" -H "Content-Type: application/json" -d @./SwaggerDoc.json "https://api.swaggerhub.com/apis/Frooodle/Stirling-PDF/${{ steps.versionNumber.outputs.versionNumber }}?isPrivate=false&force=true"
|
||||
|
|
2329
SwaggerDoc.json
2329
SwaggerDoc.json
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue