Skip to content

Commit

Permalink
fix: output naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedeorlandau committed Jan 11, 2022
1 parent 6e13941 commit b4f5cb7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:
content: "${{ steps.deploy.outputs.preview_url }}"
# Use the QR Code in another step, e.g. to embed the image in a slack message
- name: Do Something
run: echo ${{ steps.qrcode.outputs.base64 }}
run: echo ${{ steps.qrcode.outputs.data }}
```
### Set up required parameters
Expand All @@ -23,7 +23,7 @@ Need to contain the required parameters on the workflow file.
### Outputs
Need to contain the required parameters on the workflow file.

- `base64` The base64 encoded representation of the QR Code
- `data` The base64 encoded representation of the QR Code
- `text` The ascii text representation of the QR Code


Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
description: 'The content to encode to QR code. Must be string.'
required: true
outputs:
base64:
data:
description: 'Base64 Data For the Generated QR Code'
text:
description: 'ASCII Text Representation of the Generated QR COde'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "better-qr-code-generator",
"version": "8.0.0",
"version": "9.0.0",
"description": "A GitHub Action that generates a QR Code and returns base64 Data",
"main": "lib/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export async function run(): Promise<void> {
const data = await group('Create Base64', () => QRCode.toDataURL(content))
const text = await group('Create QR Text', () => QRCode.toString(content))

setOutput('base64', data)
setOutput('data', data)
setOutput('text', text)
}

0 comments on commit b4f5cb7

Please sign in to comment.