Skip to content

Commit

Permalink
antall-erstatninger
Browse files Browse the repository at this point in the history
  • Loading branch information
jostein-skaar committed May 11, 2021
1 parent ad207a5 commit 87e300e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
erstatt: 'v1.2.3'
filer: './testfiler/**/*.js'
dry-run: true
- run: echo "Antall erstatninger ${{ steps.erstatningersteg.outputs.antall }}"
- run: echo "Antall erstatninger ${{ steps.erstatningersteg.outputs.antall-erstatninger }}"

bygg:
# name: Node ${{ matrix.node_version }} - Bygg, test og lint
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inputs:
required: false

outputs:
antall-filer:
antall-erstatninger:
description: 'Antall ord som ble erstattet'

runs:
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ try {
console.error('Mangler sok, erstatt og/eller filer.');
} else {
const antallErstatninger = sokOgErstatt(sok, erstatt, filer, dryRun);
console.log(`Antall endrede filer: ${antallErstatninger}`);
core.setOutput('antall_filer', antallErstatninger);
console.log(`Antall erstatninger: ${antallErstatninger}`);
core.setOutput('antall-erstatninger', antallErstatninger);
}

// Get the JSON webhook payload for the event that triggered the workflow
Expand Down

0 comments on commit 87e300e

Please sign in to comment.