Skip to content

Commit

Permalink
Create a dummy description if no version problems are found
Browse files Browse the repository at this point in the history
Currently the PR step is skipped if no report file is written, but then
the delete branch option do not work.

This now creates a dummy description file so the PR job can always run.
  • Loading branch information
laeubi committed Feb 7, 2025
1 parent 631a895 commit a0dbd9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/checkDependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,14 @@ jobs:
working-directory: ${{ matrix.bundles }}
run: >-
mvn -B -ntp ${{ inputs.maven-goals }} -DskipTests -Pdependency-check -Dtycho.dependency.check.apply=true
- name: Create PR description file if missing
if: ${{ hashFiles(format('{0}/target/versionProblems.md', matrix.bundles)) == '' }}
working-directory: ${{ matrix.bundles }}
run: |
mkdir -p target
echo '## No version problems detected' > target/versionProblems.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
if: ${{ hashFiles(format('{0}/target/versionProblems.md', matrix.bundles)) != '' }}
with:
commit-message: Update version ranges of dependencies for ${{ matrix.bundles }}
branch: dependency-check/${{ matrix.bundles }}
Expand Down

0 comments on commit a0dbd9e

Please sign in to comment.