Skip to content

Commit

Permalink
ci: add step summary (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas authored May 30, 2024
1 parent 66cd52e commit d8daf5a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/fprd-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
- name: Build monorepo
run: pnpm ci:build

- name: Start summary
run: |
echo '# FPRD deployment summary' >> $GITHUB_STEP_SUMMARY
- name: 'Deploy affected apps to Fusion PROD'
shell: bash
env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/manual-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
- name: Build monorepo
run: npx turbo run build --filter=${{inputs.appKey}}

- name: Start summary
run: |
echo '# FPRD deployment summary' >> $GITHUB_STEP_SUMMARY
- name: 'Deploy affected apps to Fusion FPRD env'
shell: bash
env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
- name: Build monorepo
run: npx turbo run build --filter='${{inputs.category}}'

- name: Start summary
run: |
echo '# CI deployment summary' >> $GITHUB_STEP_SUMMARY
- name: 'Deploy affected apps to Fusion CI env'
shell: bash
env:
Expand Down
3 changes: 3 additions & 0 deletions github-action/src/releaseMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { makeManifest } from './utils/makeManifest.js';
import { zipBundle } from './utils/zipBundle.js';
import { uploadBundle } from './utils/uploadBundle.js';
import { patchAppConfig } from './utils/patchAppConfig.js';
import { execSync } from 'child_process';

const prodUrl = 'https://fusion-s-portal-fprd.azurewebsites.net';

Expand Down Expand Up @@ -76,6 +77,8 @@ export async function release(config: ReleaseArgs) {
pkg.name,
prodUrl
);

execSync(`echo '## ${pkg.name}' >> $GITHUB_STEP_SUMMARY`);
}

function shouldSkipProd() {
Expand Down
3 changes: 3 additions & 0 deletions github-action/src/releasePr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { makeManifest } from './utils/makeManifest.js';
import { zipBundle } from './utils/zipBundle.js';
import { uploadBundle } from './utils/uploadBundle.js';
import { patchAppConfig } from './utils/patchAppConfig.js';
import { execSync } from 'child_process';

const ciUrl = 'https://fusion-s-portal-ci.azurewebsites.net';

Expand Down Expand Up @@ -68,4 +69,6 @@ export async function release(context: ReleaseArgs) {
r.name,
ciUrl
);

execSync(`echo '## ${r.name}' >> $GITHUB_STEP_SUMMARY`);
}

0 comments on commit d8daf5a

Please sign in to comment.