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 fbab643 commit 32f8f13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/prhtmlgenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check number of bridges
id: check1
run: |
PR=${{github.event.number}};
wget https://patch-diff.githubusercontent.com/raw/$GITHUB_REPOSITORY/pull/$PR.patch;
bridgeamount=$(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)
echo "$bridgeamount" >> $GITHUB_OUTPUT
::set-output name=bridges::$bridgeamount
test-pr:
name: Generate HTML
runs-on: ubuntu-latest
needs: check-bridges
if: ${{needs.check-bridges.outputs}} >= 1
if: ${{needs.check-bridges.check1.outputs.bridges}} >= 1
env:
PYTHONUNBUFFERED: 1
# Needs additional permissions https://github.com/actions/first-interaction/issues/10#issuecomment-1041402989
Expand Down

0 comments on commit 32f8f13

Please sign in to comment.