Skip to content

Commit

Permalink
CICD: evaluate diff output using sed instead of grep
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Apr 13, 2024
1 parent 989ff01 commit 655f1aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
git diff ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} --name-only > changed.txt
- name: Identify affected versions
run: |
grep src/ScottPlot4/ changed.txt > changed4.txt
grep src/ScottPlot5/ changed.txt > changed5.txt
sed -n '/src\/ScottPlot4/p' changed.txt > changed4.txt
sed -n '/src\/ScottPlot5/p' changed.txt > changed5.txt
- name: Set workflow variables
run: |
echo "MOD_SP4=$(cat changed4.txt)" >> $GITHUB_ENV
Expand Down

0 comments on commit 655f1aa

Please sign in to comment.