Skip to content

Commit

Permalink
ci: Update scripts to reference the Production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
killij committed Jan 25, 2024
1 parent dc37bec commit ea60f03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-schema-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
CPD_SPACE_ID: ${{ secrets.TF_VAR_CPD_SPACE_ID }}
working-directory: ./Contentful-Schema
run: |
node ./dist/scripts/schema-release-process/create-new-env-version.js -s pre-prod -t dummy
node ./dist/scripts/schema-release-process/create-new-env-version.js -s pre-prod -t master
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: workflow_dispatch
jobs:
create-schema-release:
runs-on: ubuntu-latest
environment: Prod
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -24,4 +25,4 @@ jobs:
CPD_SPACE_ID: ${{ secrets.TF_VAR_CPD_SPACE_ID }}
working-directory: ./Contentful-Schema
run: |
node ./dist/scripts/schema-release-process/switch-alias-for-release.js -a dummy -r
node ./dist/scripts/schema-release-process/switch-alias-for-release.js -a master -r
3 changes: 2 additions & 1 deletion .github/workflows/switch-master-alias-to-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: workflow_dispatch
jobs:
create-schema-release:
runs-on: ubuntu-latest
environment: Prod
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -24,4 +25,4 @@ jobs:
CPD_SPACE_ID: ${{ secrets.TF_VAR_CPD_SPACE_ID }}
working-directory: ./Contentful-Schema
run: |
node ./dist/scripts/schema-release-process/switch-alias-for-release.js -a dummy
node ./dist/scripts/schema-release-process/switch-alias-for-release.js -a master

0 comments on commit ea60f03

Please sign in to comment.