Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced collection #38

Merged
merged 16 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 3 additions & 46 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Deploy
# Defines when this action should be run
on:
# Run on any push to main
push:
branches:
- main
# push:
# branches:
# - main
# Run when a repository dispatch event is received
repository_dispatch:
types: [openapi-update]
Expand Down Expand Up @@ -90,46 +90,3 @@ jobs:
SLACK_AVATAR: "https://avatars3.githubusercontent.com/u/8659759?s=200&v=4"
with:
args: "Deployed Japanese Postman collection :rocket:"


# Deploys the Advanced version
deploy-adv:
runs-on: ubuntu-latest
timeout-minutes: 20
# needs: deploy-jp

env:
LOCALES: "en"
EN_OAS3_REPO: "https://github.com/box/box-openapi.git#jp"
PRIVATE_EN_POSTMAN_COLLECTION_ADVANCED_ID: "8119550-1ca6cb64-7560-4f24-a2b5-89ba095b1c17"
PUBLIC_EN_POSTMAN_COLLECTION_ADVANCED_ID: "8119550-373aba62-5af5-459b-b9a4-e9db77f947a5"
POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }}

strategy:
matrix:
node-version: [18.x]

steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Deploy the collection
run: |
yarn install
yarn pull
yarn convertAdvanced en
yarn releaseAdvanced en

- name: Send Slack notification
uses: Ilshidur/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: GitHub Actions
SLACK_AVATAR: "https://avatars3.githubusercontent.com/u/8659759?s=200&v=4"
with:
args: "Deployed Advanced Postman collection :rocket:"
57 changes: 57 additions & 0 deletions .github/workflows/deployAdvanced.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# The name of this GH action
name: Deploy Advanced

# Defines when this action should be run
on:
# Run on any push to main
push:
branches:
- main
# Run when a repository dispatch event is received
repository_dispatch:
types: [openapi-update]

jobs:
# Deploys the Advanced version
deploy-adv:
runs-on: ubuntu-latest
timeout-minutes: 20
# needs: deploy-jp

env:
LOCALES: "en"
EN_OAS3_REPO: "https://github.com/box/box-openapi.git#en"
PRIVATE_EN_POSTMAN_COLLECTION_ADVANCED_ID: "8119550-1ca6cb64-7560-4f24-a2b5-89ba095b1c17"
PUBLIC_EN_POSTMAN_COLLECTION_ADVANCED_ID: "8119550-373aba62-5af5-459b-b9a4-e9db77f947a5"
CONVERT_LOG: true
POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }}

strategy:
matrix:
node-version: [18.x]

steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Deploy the collection
run: |
yarn install
yarn clean
yarn pull
yarn convertAdvanced en
yarn releaseAdvanced en

- name: Send Slack notification
uses: Ilshidur/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: GitHub Actions
SLACK_AVATAR: "https://avatars3.githubusercontent.com/u/8659759?s=200&v=4"
with:
args: "Deployed Advanced Postman collection :rocket:"