Skip to content

Commit

Permalink
fix(actions): skip validation check for ignored paths (#119) (CP: 1.0) (
Browse files Browse the repository at this point in the history
#120)

fix(actions): skip validation check for ignored paths (#119)

If a PR contains only changes to files ignored by the validation
workflow, the build and test job is not executed and its status is
pending, preventing the PR to being merged.

This change introduces an additional workflow that marks as good PR that
contains changes to ignored files.

See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/troubleshooting-required-status-checks\#handling-skipped-but-required-checks
for more information.
  • Loading branch information
mcollovati committed Jun 18, 2023
1 parent 3fff321 commit f7fc4e5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/validation-not-required.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Quarkus Hilla Validation
on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
paths:
- README.md
- LICENSE
- .gitignore
- etc/**
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: "Skip validation for ignored paths"
run: |
echo "✅ Pull request contains changes on files ignored by validation workflow" | tee -a $GITHUB_STEP_SUMMARY && exit 0

0 comments on commit f7fc4e5

Please sign in to comment.