Skip to content

Commit

Permalink
Use matrix for environment, use environment vars
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzsternemann committed Mar 31, 2024
1 parent fbe1c7d commit 49040b4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
run:
working-directory: ./exporter

strategy:
matrix:
environment: [development, production]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -28,10 +32,12 @@ jobs:
cache-dependency-path: exporter/yarn.lock
- run: yarn install --frozen-lockfile

- name: Export development schema
run: yarn start development
- name: Export production schema
run: yarn start production
- name: Export schema for environment
env:
- CKTOOL_MGMT_TOKEN: ${{ secrets.CKTOOL_MGMT_TOKEN }}
- TEAM_ID: ${{ secrets.TEAM_ID }}
- CONTAINER_ID: ${{ secrets.CONTAINER_ID }}
run: yarn start ${{ matrix.environment }}

# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v5
Expand Down

0 comments on commit 49040b4

Please sign in to comment.