Browse Source

chore: fix CI action

tophf 4 years ago
parent
commit
7300d3fd33
2 changed files with 2 additions and 4 deletions
  1. 1 3
      .github/workflows/ci.yml
  2. 1 1
      scripts/action-helper.js

+ 1 - 3
.github/workflows/ci.yml

@@ -29,9 +29,7 @@ jobs:
         run: yarn && yarn build
 
       - name: Get version and SHA
-        run: node scripts/action-helper.js
-        with:
-          type: ci
+        run: node scripts/action-helper.js ci
       - name: Upload Artifact
         uses: actions/upload-artifact@v2
         continue-on-error: true

+ 1 - 1
scripts/action-helper.js

@@ -4,7 +4,7 @@ const { getVersion, isBeta } = require('./version-helper');
 
 const version = getVersion();
 const beta = isBeta();
-const ci = core.getInput('type') === 'ci';
+const ci = process.argv.includes('ci');
 
 const envs = {
   VERSION: version,