File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 37
37
38
38
- name : Run build
39
39
run : |
40
- bash cicd-deployment-scripts/pi/build.sh -p "${{ github.event.pull_request.number }}"
40
+ bash cicd-deployment-scripts/pi/build.sh \
41
+ -p "${{ github.event.pull_request.number }}" \
42
+ -r "${{ github.repository.default_branch }}" \
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
PR_NUMBER=" "
6
+ DIFF_REF=" dev"
6
7
7
- while getopts p: flag
8
+ while getopts p:r: flag
8
9
do
9
10
case " ${flag} " in
10
11
p) PR_NUMBER=${OPTARG} ;;
12
+ r) DIFF_REF=${OPTARG} ;;
11
13
esac
12
14
done
13
15
14
- UPDATED_FILES=$( git diff --name-only)
16
+ git diff $DIFF_REF --color
17
+ UPDATED_FILES=$( git diff $DIFF_REF --name-only)
15
18
while IFS= read -r file; do
16
19
if [[ $file != requirements/* ]] || [[ $file != * .in ]]; then
17
20
continue
You can’t perform that action at this time.
0 commit comments