Skip to content

Commit

Permalink
fix: move to github script
Browse files Browse the repository at this point in the history
  • Loading branch information
janthijs committed Nov 14, 2023
1 parent 87a5723 commit 867df02
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 72 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release-notification.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: 'Release notification'
on:
create:
on: create
jobs:
create-notification:
if: ${{ contains(github.ref, 'refs/heads/MIJN-6651') }}
runs-on: ubuntu-latest
steps:
- name: Create release notification
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

GITHUB_REF
run: npm run release:notification
37 changes: 0 additions & 37 deletions Dockerfile.release

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"bff-api:test": "cross-env MA_APP_MODE=unittest vitest --environment=node src/server src/universal",
"bff-api:serve-build": "node build-bff/server/app",
"bff-api:serve-dev": "ts-node --project ./tsconfig.bff.json ./src/bffserver.ts",
"bff-api:build": "tsc --project ./tsconfig.bff.json"
"bff-api:build": "tsc --project ./tsconfig.bff.json",
"release:notification": "ts-node scripts/release-notifications/release-notes"
},
"browserslist": [
">0.2%",
Expand Down
9 changes: 2 additions & 7 deletions scripts/release-notifications/release-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ const { sendTeamsMessage } = require('./teams');

const RELEASE_MERGE_MESSAGE = 'Bump!';

const args = process.argv.slice(2); // Read commandline args

const PATH = args[0].split('=')[1];
const HOST = args[1].split('=')[1];

// Small wrapper
function executeCommandSync(command) {
return child_process.execSync(command).toString();
Expand Down Expand Up @@ -86,5 +81,5 @@ function getChangesSinceLastRelease() {
}

const changes = getChangesSinceLastRelease();
const cardJson = getReleaseCardJson(changes);
sendTeamsMessage(cardJson, HOST, PATH);
// const cardJson = getReleaseCardJson(changes);
// sendTeamsMessage(cardJson, HOST, PATH);
20 changes: 0 additions & 20 deletions scripts/release-notifications/script.sh

This file was deleted.

0 comments on commit 867df02

Please sign in to comment.