Skip to content

Commit 6e73d1f

Browse files
committed
CI TEST with new action
DO NOT MERGE THIS. THIS IS A CI TEST. Signed-off-by: MyungJoo Ham <[email protected]>
1 parent cecec94 commit 6e73d1f

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/gbs_build.yml

+11-13
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,18 @@ jobs:
2525
runs-on: ubuntu-20.04
2626

2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: myungjoo/is_rebuild_required
2929
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!"
4240
- name: prepare GBS
4341
if: env.rebuild == '1'
4442
run: |

0 commit comments

Comments
 (0)