diff --git a/.github/workflows/ember-version-enforcement.yml b/.github/workflows/ember-version-enforcement.yml index f8d8b0ab688..2e4b1bd6ba5 100644 --- a/.github/workflows/ember-version-enforcement.yml +++ b/.github/workflows/ember-version-enforcement.yml @@ -26,13 +26,13 @@ jobs: cd app/assets/javascripts/discourse yarn install - name: "Check ember version" - shell: cat {0} | node - working-directory: app/assets/javascripts/discourse run: | - console.log(process.cwd()) - const version = require("ember-source/package.json").version; - console.log("Version is", version); - if(version.split(".")[0] !== 3){ - console.log(`Ember has unexpectedly been upgraded to version ${version}. If this is intentional, remove this github workflow.`); - process.exit(1) - } + node -e ' + const version = require("ember-source/package.json").version; + console.log("Ember version is", version); + if(version.split(".")[0] !== 3){ + console.log(`Ember has unexpectedly been upgraded to version ${version}. If this is intentional, remove this github workflow.`); + process.exit(1); + } + '