Skip to content

Commit

Permalink
refactored to single step, more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksonmills committed Oct 26, 2023
1 parent 7f1f2ab commit f4de02f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,21 @@ jobs:
- name: Install root dependencies
run: pnpm --filter root install

- name: Check for changes in /cli
id: cli-check
- name: Check and Validate Changes in /cli with Debugging
run: |
set -x
git fetch origin next:next
git diff --name-only next...${{ github.sha }} | grep '^cli/' || echo "No changes in /cli"
# This will use the `changedFilePatterns` to check that a changeset has been added
# if any matched file has been changed in /cli
- name: Debug CLI Changes Output
run: |
echo "CLI changes output: '${{ steps.cli-check.outputs.stdout }}'"
- name: Validate changeset if /cli modified
if: steps.cli-check.outputs.stdout != 'No changes in /cli'
run: pnpm changeset status --since origin/next
changes=$(git diff --name-only next...${{ github.sha }} | grep '^cli/')
echo "Debug: Value of 'changes' variable: $changes"
if [[ -n "$changes" ]]; then
echo "Debug: Entering conditional block because 'changes' is non-empty."
echo "Changes detected in /cli: $changes"
pnpm changeset status --since origin/next
else
echo "Debug: Entering else block because 'changes' is empty."
echo "No changes in /cli"
fi
set +x
prettier:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f4de02f

Please sign in to comment.