Skip to content

Commit

Permalink
Run builds on every push, but push to Production or Sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
joerideg committed Sep 5, 2024
1 parent 6b056e2 commit 1b4ed3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/postman.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Sync Postman Collection
on:
push:
branches:
- main

env:
ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Sandbox' }}

jobs:
postman-sync:
runs-on: ubuntu-latest
environment: Production
environment: $ENVIRONMENT
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/readme.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Sync OAS to ReadMe
on:
push:
branches:
- main

env:
ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Sandbox' }}

jobs:
rdme-openapi:
runs-on: ubuntu-latest
environment: $ENVIRONMENT
environment: ${{ env.ENVIRONMENT }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 1b4ed3a

Please sign in to comment.