Skip to content
📷 A GitHub Action that posts a QR code to a pull request comment.
TypeScript JavaScript
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
__tests__
dist
src
.eslintignore
.eslintrc.json
.gitignore
.prettierignore
.prettierrc.json
LICENSE
README.md
action.yml
jest.config.js
package-lock.json
package.json
tsconfig.json
usage.png

README.md

QR Code Commenter

A GitHub Action that posts a QR code to a pull request comment.

posts a QR code to a pull request comment.

▶️ Usage

uses: kentaro-m/qr-code-commenter-action@v0.1.2
with:
  repo-token: "${{ secrets.GITHUB_TOKEN }}"
  content: https://blog.kentarom.com/
  comment: |
    :lock: This is a QR code for access to the preview website.
    :iphone: Scan a code with your device.
    {qrcode}

Set up required parameters

Need to contain the required parameters on the workflow file.

  • repo-token Token for the repository. Can be passed in using {{ secrets.GITHUB_TOKEN }}
  • content The content to encode to QR code. Must be string.
  • comment The body for comment to post to a pull request comment. Must be contained {qrcode} placeholder and placed it to a new line.

Use a text outputted from the other action as input

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

uses: kentaro-m/qr-code-commenter-action@v0.1.2
with:
  repo-token: "${{ secrets.GITHUB_TOKEN }}"
  # Use a text outputted from the other action
  content: "${{ steps.deploy.outputs.preview_url }}"
  comment: |
    :lock: This is a QR code for access to the preview website.
    :iphone: Scan a code with your device.
    {qrcode}

📝 Licence

MIT

You can’t perform that action at this time.