Skip to content

Commit

Permalink
Action updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Jun 13, 2023
1 parent e831eda commit e9d27a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Run ESLint"
run: npx eslint src
Expand All @@ -20,14 +20,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: "npm ci"
run: npm ci

- name: "Bump version"
run: |
export VERSION="1.$(echo ${GITHUB_SHA:0:4} | tr abcdef 123456).$(echo ${GITHUB_SHA:4:4} | tr abcdef 123456)"
jq ".version = \"$VERSION\"" test/extension/manifest.json > manifest.json~
mv manifest.json~ test/extension/manifest.json
git diff
git diff test/extension
- name: "Self-test: lint"
id: web-ext-lint
Expand Down
3 changes: 2 additions & 1 deletion src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class WebExtAction {

await check.complete(summaryLine, nonfatal, fatal);

if (!this.options.token) {
if (!check.ready) {
console.log(results.notices.concat(results.warnings).concat(results.errors).map(linterToString).join("\n") + "\n");
}
console.log(summaryLine);
Expand Down Expand Up @@ -134,6 +134,7 @@ export default class WebExtAction {
async cmd_sign() {
// Doing signing directly so we can pass in a source xpi as well
let manifest = await getManifest(this.options.sourceDir);

let id;
try {
id = manifest.browser_specific_settings.gecko.id;
Expand Down

0 comments on commit e9d27a5

Please sign in to comment.