summaryrefslogtreecommitdiff
path: root/.github/workflows/py3-pr.yaml
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:45 +0100
committerChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:45 +0100
commit42b1373eff59af2aebb218ded3d2d55cc96dc630 (patch)
treed6e7e435fa41c65fff7a73dd7dc99bb4a12da5c8 /.github/workflows/py3-pr.yaml
parent176c8e29d64892072697c5d30513204773545a9b (diff)
parent6f19923a918f7fb63a444b0c99950fdbe9d2f74c (diff)
Update upstream source from tag 'upstream/20221106+py3'
Update to upstream version '20221106+py3' with Debian dir b54298e303932808cc08745c5f5133ad7b12628e
Diffstat (limited to '.github/workflows/py3-pr.yaml')
-rw-r--r--.github/workflows/py3-pr.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/py3-pr.yaml b/.github/workflows/py3-pr.yaml
new file mode 100644
index 0000000..e6e5a65
--- /dev/null
+++ b/.github/workflows/py3-pr.yaml
@@ -0,0 +1,51 @@
+name: Sync to py3 branch
+on:
+ push:
+ branches:
+ - master
+jobs:
+ makepr:
+ name: Generate PR
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ - name: Merge with py3
+ run: |
+ git fetch origin py3
+ git checkout origin/py3 -b py3-sync
+ git config --global user.email "bot@chirp.danplanet.com"
+ git config --global user.name "Merge Bot"
+ git merge $GITHUB_SHA --allow-unrelated-histories --no-edit || {
+ git add -u
+ git commit --no-edit
+ }
+ git checkout -b auto-py3-$GITHUB_SHA
+ - name: Update support matrix if needed
+ run: |
+ sudo apt-get update
+ sudo apt-get install python3-pip python3-wxgtk4.0
+ sudo python3 -mpip install tox
+ tox -e makesupported || git commit -m "Update support matrix" tests/Python3_Driver_Testing.md
+ - name: Push changes
+ run: |
+ git push origin auto-py3-$GITHUB_SHA:auto-py3-$GITHUB_SHA
+ - name: Update support matrix if needed
+ run: |
+ sudo apt-get update
+ sudo apt-get install python3-pip python3-wxgtk4.0
+ sudo python3 -mpip install tox
+ tox -e makesupported || git commit -m "Update support matrix" tests/Python3_Driver_Testing.md
+ - name: Push changes
+ run: |
+ git push origin auto-py3-$GITHUB_SHA:auto-py3-$GITHUB_SHA
+ - name: Create PR
+ uses: repo-sync/pull-request@v2
+ with:
+ github_token: ${{ secrets.PR_SYNC }}
+ source_branch: auto-py3-${{ github.sha }}
+ destination_branch: py3
+ pr_title: "[Automated] Sync master with py3"
+ pr_body: "Automated pull request to sync py3 with changes from master"