Fetch Zuora Swaggers #879
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fetch Zuora Swaggers | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
fetch-zuora-swaggers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Extract git commit data | |
uses: rlespinasse/git-commit-data-action@v1.x | |
- name: Fetch Zuora Swagger | |
run: curl -L https://www.zuora.com/developer/yaml/swagger.yaml -o zuora_billing/swagger.yaml | |
- name: Open PR | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
branch: "latest-zuora" | |
base: main | |
title: "Update Zuora Swagger" | |
committer: ${{ env.GIT_COMMIT_AUTHOR_NAME }} <${{ env.GIT_COMMIT_AUTHOR_EMAIL }}"> | |
author: ${{ env.GIT_COMMIT_AUTHOR_NAME }} <${{ env.GIT_COMMIT_AUTHOR_EMAIL }}"> | |
body: Update Zuora Swagger | |
commit-message: Auto update Zuora swagger | |
token: ${{ secrets.GITHUB_TOKEN }} |