A GitHub Action that generates a QR Code and returns base64 Data + Ascii Representation of the QR Code
steps:
- name: Generate QR Code
id: qrcode
uses: fedeorlandau/better-qr-code-generator@main
with:
# Example using text outputted from another step action
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.data }}
Need to contain the required parameters on the workflow file.
content
The content to encode to QR code. Must be string.
Need to contain the required parameters on the workflow file.
data
The base64 encoded representation of the QR Codetext
The ascii text representation of the QR Code
You can use a text outputted from the other action as input.
Check the following page about the detail of outputs
syntax: Metadata syntax for GitHub Actions - GitHub Help
MIT