Commit 6e73d1f 1 parent cecec94 commit 6e73d1f Copy full SHA for 6e73d1f
File tree 1 file changed +11
-13
lines changed
1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -25,20 +25,18 @@ jobs:
25
25
runs-on : ubuntu-20.04
26
26
27
27
steps :
28
- - uses : actions/checkout@v4
28
+ - uses : myungjoo/is_rebuild_required
29
29
with :
30
- ref : ${{ github.event.pull_request.head.sha }}
31
- fetch-depth : -${{ github.event.pull_request.commits }}
32
- - name : Check if rebuild required
33
- # # @todo This should become a reusable workflow.
34
- run : |
35
- tmpfile=$(mktemp)
36
- git show --pretty="format:" --name-only --diff-filter=AMRC ${{ github.event.pull_request.head.sha}} -${{ github.event.pull_request.commits }} | sort | uniq | awk NF > ${tmpfile}
37
- echo "changed_file_list=${tmpfile}" >> "$GITHUB_ENV"
38
- rebuild=`bash .github/workflows/check_if_rebuild_requires.sh ${tmpfile} gbs | grep "REBUILD=YES" | wc -l`
39
- echo "Rebuild required: ${rebuild}"
40
- echo "rebuild=${rebuild}" >> "$GITHUB_ENV"
41
- - uses : actions/setup-python@v1
30
+ build-script : ' gbs'
31
+ language : ' C,C++'
32
+ head : ${{ github.event.pull_request.head.sha }}
33
+ num-commits : -${{ github.event.pull_request.commits }}
34
+ - name : debugging
35
+ if : env.rebuild == '0'
36
+ run : echo "It says NOT to rebuild!"
37
+ - name : debugging2
38
+ if : env.rebuild == '1'
39
+ run : echo "It says REBUILD!"
42
40
- name : prepare GBS
43
41
if : env.rebuild == '1'
44
42
run : |
You can’t perform that action at this time.
0 commit comments