Skip to content

Bug: Fix change target branch WF. Enables Forks to submit PRs and run tests. #475

Bug: Fix change target branch WF. Enables Forks to submit PRs and run tests.

Bug: Fix change target branch WF. Enables Forks to submit PRs and run tests. #475

Workflow file for this run

name: 'Test PR'
on:
pull_request:
branches:
- 'master'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
change-base:
name: 'Change base to develop branch'
runs-on: ubuntu-24.04
permissions:
pull-requests: write
steps:
- name: 'Check out code'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Change base'
run: |
set -x
pull_number=$(jq --raw-output .pull_request.number "${GITHUB_EVENT_PATH}")
curl -X PATCH \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
"https://api.github.com/repos/runtimeverification/k/pulls/${pull_number}" \
-d '{"base":"develop"}'