Skip to content

Latest commit

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

README.md

PasteFox GitHub Action

Part of PasteFox Extensions · pastefox.com

Create pastes on PasteFox from your GitHub Actions workflows. Share build logs, test reports, error outputs, or any file.

Usage

- name: Share build log to PasteFoxuses: PasteFox/extensions/github-action@mainwith:
api-key: ${{ secrets.PASTEFOX_API_KEY }}file: build.logtitle: "Build Log - ${{ github.sha }}"visibility: UNLISTEDexpires: 7d

Share content directly

- name: Share test resultsuses: PasteFox/extensions/github-action@mainwith:
api-key: ${{ secrets.PASTEFOX_API_KEY }}content: ${{ steps.tests.outputs.report }}title: "Test Report"language: markdown

Use the output URL

- name: Create pasteid: pasteuses: PasteFox/extensions/github-action@mainwith:
api-key: ${{ secrets.PASTEFOX_API_KEY }}file: coverage/report.txttitle: "Coverage Report"
- name: Comment on PRuses: actions/github-script@v7with:
script: | github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, body: `📊 Coverage report: ${{ steps.paste.outputs.url }}` })

Inputs

InputRequiredDefaultDescription
api-keyYesPasteFox API key (use secrets)
contentNo*Content to paste
fileNo*Path to file to paste
titleNofilename or "paste"Paste title
visibilityNoUNLISTEDPUBLIC, UNLISTED, or PRIVATE
languageNoauto-detectedLanguage for syntax highlighting
expiresNonevernever, 10m, 1h, 1d, 7d, 30d
instance-urlNohttps://pastefox.comPasteFox URL or custom domain

*Either content or file is required.

Outputs

OutputDescription
urlFull URL of the created paste
slugPaste slug
idPaste ID

Job Summary

The action automatically writes a summary to the GitHub Actions job summary with the paste URL, slug, visibility, and expiration.

Setup

  1. Get an API key from pastefox.com/dashboard/api-keys
  2. Add it as a repository secret: Settings → Secrets → PASTEFOX_API_KEY
  3. Use the action in your workflow

Other Extensions

License

MIT