-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.51 KB
/
generate-supported-plugins-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Generate update PR for the Dynamic Plugins tables
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: Install PIP `yq`
run: |
python3 -m pip install --upgrade pip
pip install yq
echo "Installed `yq` version: $(yq --version)"
- 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: Generate timestamp
run: echo "TIMESTAMP=$(date +'%Y%m%d-%H%M%S' -u)" >> $GITHUB_ENV
- 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 }}-${{ env.TIMESTAMP }}"
base: ${{ github.event.inputs.branch }}