Skip to content

Commit

Permalink
chore(ci): include pr-check to be trigger for new test
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Dockal <[email protected]>
  • Loading branch information
odockal committed Sep 9, 2024
1 parent 25307c7 commit 720535b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ jobs:
!./tests/**/traces/raw
detect_pnpm_changes:
name: Detect pnpm lock file changes
name: Detect pnpm lock or pr-check files changes
runs-on: ubuntu-24.04
outputs:
pnpm_lock_changed: ${{ steps.pnpm_changed.outputs.PNPM_LOCK_CHANGED }}
Expand All @@ -338,12 +338,12 @@ jobs:
with:
fetch-depth: 2

- name: Evaluate changes in files
- name: Evaluate changes in files
id: pnpm_changed
run: |
git fetch origin ${{ github.event.pull_request.base.ref }}
git diff --name-only origin/${{ github.event.pull_request.base.ref }} HEAD > changes.txt
if grep -q 'pnpm-lock.yaml' changes.txt; then
if grep -q -e 'pnpm-lock.yaml' -e 'pr-check.yaml' changes.txt; then
echo "PNPM_LOCK_CHANGED=true" >> $GITHUB_OUTPUT
else
echo "PNPM_LOCK_CHANGED=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 720535b

Please sign in to comment.