Skip to content

Commit

Permalink
fix: add typing for outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
rinej committed Feb 14, 2024
1 parent 32ed6d6 commit 738defb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/actions/javascript/getGraphiteString/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: 'Get and Save graphite string'
description: 'Parse reassure output.json file and create string which can be sent to the graphite server'
outputs:
GRAPHITE_STRING:
description: String with reassure data which can be directly sent to the graphite server
runs:
using: 'node20'
main: './index.js'
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const run = () => {
.join('\n');

// Set generated graphite string to the github variable
core.setOutput('graphiteString', graphiteString);
core.setOutput('GRAPHITE_STRING', graphiteString);
};

if (require.main === module) {
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/getGraphiteString/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const run = () => {
.join('\n');

// Set generated graphite string to the github variable
core.setOutput('graphiteString', graphiteString);
core.setOutput('GRAPHITE_STRING', graphiteString);
};

if (require.main === require.cache[eval('__filename')]) {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reassurePerformanceTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ jobs:
- name: Send graphite data
# run only when merged to master
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
run: echo -e "${{ steps.saveGraphiteString.outputs.graphiteString }}" | nc "$GRAFHITE_SERVER" "$GRAFHITE_PORT"
run: echo -e "${{ steps.saveGraphiteString.outputs.GRAPHITE_STRING }}" | nc "$GRAFHITE_SERVER" "$GRAFHITE_PORT"

0 comments on commit 738defb

Please sign in to comment.