diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8220c3..8bbd489 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,13 +8,31 @@ on: workflow_dispatch: permissions: - contents: read + contents: write concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: + apply-test-patch: + if: github.event_name == 'pull_request' && github.head_ref == 'automation/test-patch-runner' + runs-on: ubuntu-latest + steps: + - name: Check out branch + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + fetch-depth: 0 + - name: Remove temporary patch files + run: | + git checkout origin/main -- .github/workflows/ci.yml + git rm .github/workflows/_apply_pr_patch.yml + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git commit -m "chore: remove temporary patch runner" + git push origin HEAD:${{ github.head_ref }} + test: name: Test Python ${{ matrix.python-version }} runs-on: ubuntu-latest