Introduce an action which creates a PR against plugins to test this branch #4
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
# 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 |