Merge pull request #8 from ajaynomics/fix/github-only-upstream-watcher-20260720
All checks were successful
Candidate compatibility / prepare (push) Successful in 33s
Candidate compatibility / image ${{ matrix.id }} (push) Has been skipped
Candidate compatibility / repository (push) Successful in 47s
Candidate compatibility / fixture-contract (push) Successful in 1m56s
Candidate compatibility / lockstep clients Ruby 3.4 (push) Successful in 2m8s
Candidate compatibility / lockstep clients Ruby 3.3 (push) Successful in 2m23s
Candidate compatibility / lockstep clients Ruby 3.2 (push) Successful in 2m53s
Candidate compatibility / lockstep clients Ruby 4.0 (push) Successful in 3m4s
Candidate compatibility / Gitea full exact image matrix (push) Successful in 3m51s
Watch upstream OpenCode / open-compatibility-pr (push) Has been skipped
All checks were successful
Candidate compatibility / prepare (push) Successful in 33s
Candidate compatibility / image ${{ matrix.id }} (push) Has been skipped
Candidate compatibility / repository (push) Successful in 47s
Candidate compatibility / fixture-contract (push) Successful in 1m56s
Candidate compatibility / lockstep clients Ruby 3.4 (push) Successful in 2m8s
Candidate compatibility / lockstep clients Ruby 3.3 (push) Successful in 2m23s
Candidate compatibility / lockstep clients Ruby 3.2 (push) Successful in 2m53s
Candidate compatibility / lockstep clients Ruby 4.0 (push) Successful in 3m4s
Candidate compatibility / Gitea full exact image matrix (push) Successful in 3m51s
Watch upstream OpenCode / open-compatibility-pr (push) Has been skipped
Run upstream watcher only on GitHub
This commit is contained in:
1
.github/workflows/watch-upstream.yml
vendored
1
.github/workflows/watch-upstream.yml
vendored
@@ -15,6 +15,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
open-compatibility-pr:
|
||||
if: github.server_url == 'https://github.com'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
|
||||
@@ -170,6 +170,10 @@ class WatcherTest < Minitest::Test
|
||||
def test_workflow_can_only_update_manifests_and_open_a_pr
|
||||
workflow = File.read(File.join(ROOT, ".github/workflows/watch-upstream.yml"))
|
||||
|
||||
assert_match(
|
||||
/\n open-compatibility-pr:\n if: github\.server_url == 'https:\/\/github\.com'\n runs-on:/,
|
||||
workflow
|
||||
)
|
||||
assert_includes workflow, "contents: write"
|
||||
assert_includes workflow, "pull-requests: write"
|
||||
assert_includes workflow, "git add manifests/image-matrix.json manifests/upstream.json"
|
||||
|
||||
Reference in New Issue
Block a user