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.
- name: Share build log to PasteFox
uses: PasteFox/extensions/github-action@main
with:
api-key: ${{ secrets.PASTEFOX_API_KEY }}
file: build.log
title: "Build Log - ${{ github.sha }}"
visibility: UNLISTED
expires: 7d- name: Share test results
uses: PasteFox/extensions/github-action@main
with:
api-key: ${{ secrets.PASTEFOX_API_KEY }}
content: ${{ steps.tests.outputs.report }}
title: "Test Report"
language: markdown- name: Create paste
id: paste
uses: PasteFox/extensions/github-action@main
with:
api-key: ${{ secrets.PASTEFOX_API_KEY }}
file: coverage/report.txt
title: "Coverage Report"
- name: Comment on PR
uses: actions/github-script@v7
with:
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 }}`
})| Input | Required | Default | Description |
|---|---|---|---|
api-key |
Yes | — | PasteFox API key (use secrets) |
content |
No* | — | Content to paste |
file |
No* | — | Path to file to paste |
title |
No | filename or "paste" | Paste title |
visibility |
No | UNLISTED |
PUBLIC, UNLISTED, or PRIVATE |
language |
No | auto-detected | Language for syntax highlighting |
expires |
No | never |
never, 10m, 1h, 1d, 7d, 30d |
instance-url |
No | https://pastefox.com |
PasteFox URL or custom domain |
*Either content or file is required.
| Output | Description |
|---|---|
url |
Full URL of the created paste |
slug |
Paste slug |
id |
Paste ID |
The action automatically writes a summary to the GitHub Actions job summary with the paste URL, slug, visibility, and expiration.
- Get an API key from pastefox.com/dashboard/api-keys
- Add it as a repository secret: Settings → Secrets →
PASTEFOX_API_KEY - Use the action in your workflow
- VS Code / Kiro — share from your editor
- Chrome Extension — share from Chrome
- Firefox Extension — share from Firefox
- IntelliJ Plugin — share from JetBrains IDEs
- CLI — share from the terminal
MIT