Repository navigation
34 lines (34 loc) · 1.62 KB
/
Copy pathCompatHelper.yml
File metadata and controls
34 lines (34 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- name: Install CompatHelper
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: Run CompatHelper
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
# Every workspace member with [compat]: a member left out keeps the old bound, and the workspace no longer resolves.
run: julia -e 'using CompatHelper; CompatHelper.main(; subdirs = ["", "accv2026", "accv2026/envs/superansac", "accv2026/lib/RansacLibLO", "docs", "test"])'
# CompatHelper's own open PRs (opened by github-actions, branch compathelper/…) merge themselves once the CI jobs
# required on main (branch protection) succeed. Every other PR is untouched. Merging is not a release: the stack's
# cascade still bumps the version, narrows compat to the latest only, and registers.
- name: "Auto-merge CompatHelper's PRs once the required checks succeed"
run: |
for pr in $(gh pr list --repo "$GITHUB_REPOSITORY" --state open --author app/github-actions \
--json number,headRefName --jq '.[] | select(.headRefName | startswith("compathelper/")) | .number'); do
gh pr merge "$pr" --repo "$GITHUB_REPOSITORY" --auto --squash || echo "PR #$pr: auto-merge not enabled"
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}