Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,25 @@ jobs:
https://getpatchrail.com/fix*) echo "OK" ;;
*) echo "unexpected guide-url"; exit 1 ;;
esac

# Everyone uses `patchrail/ci-triage-action@v1`, but the jobs above test the
# commit, not the tag. Without this the two drift apart in silence: a merged
# fix stays invisible to every user while CI keeps reporting green. Move the
# floating tag to each main commit that passed both jobs, so `@v1` is always
# the newest tested code.
sync-v1:
needs: [fix-guide-slugs, smoke]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: Fast-forward the v1 tag to the tested commit
shell: bash
run: |
set -euo pipefail
git tag -f v1 "${GITHUB_SHA}"
git push --force origin refs/tags/v1
echo "v1 -> ${GITHUB_SHA}"
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ step guarded by `if: failure()`. On a red run you get an annotation like
`python-test-failure (confidence 0.89) — guide: getpatchrail.com/fix/...` plus a
job summary block.

### Which ref to pin

`@v1` is a moving tag: it points at the latest commit on `main` that passed the
test suite, and it will keep moving within the v1 line (no breaking changes to
inputs or outputs). If you would rather review every change yourself, pin the
full commit SHA instead:

```yaml
uses: patchrail/ci-triage-action@<commit-sha>
```

## Inputs

| Input | Default | Description |
Expand Down
Loading