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 |
git tag v0.5.4 && git push origin v0.5.4.github/workflows/release.yml validates the action)action.yml at the tagged ref (@v0.5, @v0.5.4, or @main for bleeding edge)pip install -e .
pytest -q
# workflow job `test-composite-action` exercises uses: ./