Skip to content

Introduce an action which creates a PR against plugins to test this branch #4

Introduce an action which creates a PR against plugins to test this branch

Introduce an action which creates a PR against plugins to test this branch #4

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Test Plugins
on:
pull_request:
permissions:
contents: read
jobs:
test:
name: ${{ matrix.plugin }}
strategy:
matrix:
plugin:
- 'user-switching'
fail-fast: false
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: johnbillion/${{ matrix.plugin }}
token: ${{ secrets.PLUGINS_PUSH_TOKEN }}
- name: Update tests reference
run: |
sed -i 's/reusable-integration-tests.yml@trunk/reusable-integration-tests.yml@${{ github.head_ref }}/g' .github/workflows/integration-tests.yml
- name: Open PR
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PLUGINS_PUSH_TOKEN }}
commit-message: "Update plugin-infrastructure to ${{ github.sha }}"
title: Update plugin-infrastructure to ${{ github.head_ref }}
body: |
This PR updates [plugin-infrastructure](https://github.com/johnbillion/plugin-infrastructure) to `${{ github.head_ref }}`.
branch: update-plugin-infrastructure
draft: true