Skip to content

Commit

Permalink
fix: fix timestamp, use PIP yq in workflow (redhat-developer#924)
Browse files Browse the repository at this point in the history
Signed-off-by: Beth Griggs <[email protected]>
  • Loading branch information
BethGriggs authored Feb 11, 2025
1 parent e43fa0c commit 9279859
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/generate-supported-plugins-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ jobs:
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 }}

Expand All @@ -32,5 +41,5 @@ jobs:
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)"
branch: "update-${{ github.event.inputs.branch }}-${{ env.TIMESTAMP }}"
base: ${{ github.event.inputs.branch }}

0 comments on commit 9279859

Please sign in to comment.