Publish this repository to the GitHub Marketplace as a composite action.
name: Intract
on: [pull_request, push]
jobs:
contracts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: semcod/intract@v0.5
with:
path: .
manifest: intract.yaml
staged: "false"
hunks: "true"
fail-on-error: "true" - uses: semcod/intract@v0.5
with:
path: .
staged: "true"
hunks: "true"| Input | Default | Description |
|---|---|---|
path |
. |
Project root |
manifest |
(empty) | Path to intract.yaml |
python-version |
3.12 |
Python runtime |
staged |
false |
Validate staged files only |
hunks |
true |
Hunk-level staged validation |
fail-on-error |
true |
Exit non-zero on policy failure |
- Tag a release:
git tag v0.5.4 && git push origin v0.5.4 - Create GitHub Release from the tag (workflow
.github/workflows/release.ymlvalidates the action) - In repo Settings → Actions → General, allow GitHub Actions
- Submit to Marketplace: Publish this Action to GitHub Marketplace on the release page
- Point
action.ymlat the tagged ref (@v0.5,@v0.5.4, or@mainfor bleeding edge)
pip install -e .
pytest -q
# workflow job `test-composite-action` exercises uses: ./