Skip to content

Commit

Permalink
Update prhtmlgenerator.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bockiii authored Oct 16, 2024
1 parent 70cf917 commit 20c780c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/prhtmlgenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,20 @@ on:
branches: [ master ]

jobs:
check-bridges:
name: Check if bridges were changed
runs-on: ubuntu-latest
steps:
- name: Check number of bridges
run: |
PR=${{github.event.number}};
wget https://patch-diff.githubusercontent.com/raw/$GITHUB_REPOSITORY/pull/$PR.patch;
echo "$(cat $PR.patch | grep "\bbridges/[A-Za-z0-9]*Bridge\.php\b" | sed "s=.*\bbridges/\([A-Za-z0-9]*\)Bridge\.php\b.*=\1=g" | sort | uniq | wc -l)" >> $GITHUB_OUTPUT
test-pr:
name: Generate HTML
runs-on: ubuntu-latest
needs: check-bridges
if: ${{needs.check-bridges.outputs}} >= 1
env:
PYTHONUNBUFFERED: 1
# Needs additional permissions https://github.com/actions/first-interaction/issues/10#issuecomment-1041402989
Expand Down

0 comments on commit 20c780c

Please sign in to comment.