Ship markfluence as a reusable GitHub Action
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start with the existing Go CLI and CI/goreleaser setup, then inspect the release asset naming for the supported OS and architecture combinations. Add the root action.yml, README usage example, and optional examples/ workflow while resolving version selection, asset verification, and CONFLUENCE_TOKEN handling. Done means the composite action downloads and runs the requested release on Linux and macOS with the documented inputs.
Written by the indexing model from the issue text.
Description
Let this repo double as a GitHub Action so downstream repos can publish markdown to Confluence from CI (e.g. on push to docs/**), e.g. uses: mozilla/markfluence@v1. The repo can be both the CLI source and the action — an action.yml at the repo root coexists with the Go module.
Recommended approach: composite action
Author action.yml with runs.using: composite whose steps download the goreleaser release binary for the runner's OS/arch and invoke it. We already publish markfluence_<version>_<os>_<arch>.tar.gz for darwin+linux × arm64+amd64, so the action just fetches the matching asset and runs it.
- Fast (no image build), works on Linux and macOS runners, reuses existing releases.
Sketch
# action.yml
name: markfluence
description: Publish markdown to Confluence
inputs:
command: { description: "update | create | fix", required: true }
files: { description: "markdown files/globs", required: true }
url: { description: "Confluence base URL", required: true }
username: { description: "Confluence username/email", required: true }
version: { description: "release tag to use", default: latest }
runs:
using: composite
steps:
- shell: bash
run: | # download markfluence_<ver>_<os>_<arch>.tar.gz, extract, then:
markfluence "${{ inputs.command }}" ${{ inputs.files }} \
--url "${{ inputs.url }}" --username "${{ inputs.username }}"
Consumer:
- uses: mozilla/markfluence@v1
with: { command: update, files: "docs/*.md", url: https://org.atlassian.net, username: bot@org.com }
env: { CONFLUENCE_TOKEN: ${{ secrets.CONFLUENCE_TOKEN }} }
The CLI already reads CONFLUENCE_TOKEN only from the environment (never a flag), so the token stays a secret env var and never becomes an action input.
Alternatives considered
- Docker container action (
runs.using: docker): self-contained but Linux-only and slower cold start; unnecessary since we ship static binaries. - JS/TS action: not a fit for a Go CLI without a wrapper.
Work / open questions
- Add
action.yml(composite) that resolvesversion(defaultlatest), downloads the correct release asset, verifies it, and runs the requested subcommand. - Map inputs → flags; pass
CONFLUENCE_TOKENthrough. Verify the env nuance: env set on auses:step isn't always visible to a composite action's inner steps — decide between requiring job/workflow-level env vs. a masked token input exported internally. -
branding:(icon/color) for the Marketplace. - Maintain a moving
v1tag alongside goreleaser's release tags. - README section with a usage example.
- (Optional) Publish to the GitHub Marketplace from a release.
- Example consumer workflow under
examples/or the README.
Follow-up to the CI/goreleaser work already in place.
- Dominant language
- Go
- Stars
- 2
- Forks
- 0
- Avg merge
- 2h 50m
- Merged PRs (30d)
- 52
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/markfluence
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
mozilla/markfluence#186 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
mozilla/markfluence#185 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
mozilla/markfluence#184 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
mozilla/markfluence#181 · 1 comment ·
-
bug
Difficulty 5/5 Over a week Newbie friendliness 48/100
mozilla/markfluence#163 ·
All issues in mozilla/markfluence
Similar issues
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microsoft/agent-framework-go#1179 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[Bug]: OLLAMA_KEEP_ALIVE="5m" / "24h" crashes Ollama embedding and vision models with ValueError Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
infiniflow/ragflow#20223 · 1 reaction ·
-
bug needs triage pkg/translator/faro
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
open-telemetry/opentelemetry-collector-contrib#51484 · 1 comment ·