From 2ca19cd3a6e5a5bc64dbfe5296a3719824c5d71a Mon Sep 17 00:00:00 2001 From: Beth Griggs Date: Tue, 4 Feb 2025 16:38:46 +0000 Subject: [PATCH 1/2] feat: add GitHub action to generate supported plugins PR Signed-off-by: Beth Griggs --- .../generate-supported-plugins-pr.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/generate-supported-plugins-pr.yml diff --git a/.github/workflows/generate-supported-plugins-pr.yml b/.github/workflows/generate-supported-plugins-pr.yml new file mode 100644 index 0000000000..1e0cc146cb --- /dev/null +++ b/.github/workflows/generate-supported-plugins-pr.yml @@ -0,0 +1,36 @@ +name: Run rhdh-supported-plugins.sh and open PR + +on: + workflow_dispatch: + inputs: + branch: + description: "Branch to run the script from" + required: true + default: "main" + +jobs: + run-script: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.branch }} + fetch-depth: 0 + + - name: Set up Git user + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + - name: Run the script on branch + run: bash modules/dynamic-plugins/rhdh-supported-plugins.sh -b ${{ github.event.inputs.branch }} + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + commit-message: "chore: automated update of supported plugins list" + title: "Automated update of supported plugins list for ${{ github.event.inputs.branch }}" + body: "This PR was automatically generated by running rhdh-supported-plugins.sh." + branch: "update-${{ github.event.inputs.branch }}-$(date +%Y%m%d%H%M)" + base: ${{ github.event.inputs.branch }} From 77b1968224ba3da87aaaece402ed50cfd9f24ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20Flore-Th=C3=A9bault?= Date: Tue, 4 Feb 2025 20:15:51 +0100 Subject: [PATCH 2/2] Update .github/workflows/generate-supported-plugins-pr.yml Co-authored-by: Nick Boldt --- .github/workflows/generate-supported-plugins-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate-supported-plugins-pr.yml b/.github/workflows/generate-supported-plugins-pr.yml index 1e0cc146cb..bd2dd36471 100644 --- a/.github/workflows/generate-supported-plugins-pr.yml +++ b/.github/workflows/generate-supported-plugins-pr.yml @@ -1,4 +1,4 @@ -name: Run rhdh-supported-plugins.sh and open PR +name: Generate update PR for the Dynamic Plugins tables on: workflow_dispatch: