GeezerVison is showing github.com — ci: fix SCRATCH_ENV debug info in the deploy job · SnoopyMod/snoopymod-www@d3fedf5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci-cd.yml +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -134,6 +134,8 @@ jobs: |
134 | 134 | runs-on: ubuntu-latest |
135 | 135 | needs: [set-environment, build] |
136 | 136 | environment: ${{ needs.set-environment.outputs.environment }} |
| 137 | + env: |
| 138 | + SCRATCH_ENV: ${{ needs.set-environment.outputs.environment }} |
137 | 139 | if: ${{ needs.set-environment.outputs.should_deploy == 'true' }} |
138 | 140 | steps: |
139 | 141 | - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 |
@@ -175,6 +177,7 @@ jobs: |
175 | 177 | ls -lRh artifacts/ |
176 | 178 | tar -xavf artifacts/build.tar.zst |
177 | 179 | - name: deploy |
| 180 | + # This also uses SCRATCH_ENV, defined at the job level |
178 | 181 | run: npm run deploy |
179 | 182 | env: |
180 | 183 | S3_LOCAL_DIR: build |
@@ -184,7 +187,6 @@ jobs: |
184 | 187 | FASTLY_API_KEY: ${{ secrets.FASTLY_API_KEY }} |
185 | 188 | FASTLY_SERVICE_ID: ${{ secrets.FASTLY_SERVICE_ID }} |
186 | 189 | SCRATCH_BRANCH: ${{ github.ref_name }} |
187 | | - SCRATCH_ENV: ${{ needs.set-environment.outputs.environment }} |
188 | 190 | SLACK_WEBHOOK_CIRCLECI_NOTIFICATIONS: ${{ secrets.SLACK_WEBHOOK_CIRCLECI_NOTIFICATIONS }} # TODO: rename or replace |
189 | 191 | SLACK_WEBHOOK_ENGINEERING: ${{ secrets.SLACK_WEBHOOK_ENGINEERING }} |
190 | 192 | SLACK_WEBHOOK_MODS: ${{ secrets.SLACK_WEBHOOK_MODS }} |
|