[DPE-5830] Bump to 24.04 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clone PR to test 24.04 base | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
clone-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Install tox | |
run: | | |
pipx install tox | |
- name: Run switch to 24.04 | |
run: | | |
tox run -e switch-24.04 | |
- name: Create and push to a new branch | |
run: | | |
NEW_BRANCH="24.04-cloned-${{ github.event.pull_request.number }}" | |
git checkout -b $NEW_BRANCH | |
git add . | |
git commit -m "switch to 24.04" | |
git push origin $NEW_BRANCH |