Skip to content

Commit f3423d0

Browse files
committed
skip test-check for act_exec also, and try new option
Signed-off-by: a1012112796 <[email protected]>
1 parent 80ae79c commit f3423d0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/files-changed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
id: changes
3737
with:
3838
# needed for `act_runner exec`
39-
ref: ${{ env.ACT_EXEC == 'true' && 'HEAD' || env.GITHUB_REF }}
39+
base: ${{ env.ACT_EXEC == 'true' && 'HEAD' || '' }}
4040
filters: |
4141
backend:
4242
- "**/*.go"

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,10 @@ test-frontend: node_modules
456456
test-check:
457457
@echo "Running test-check...";
458458
@diff=$$(git status -s); \
459-
if [ -n "$$diff" ]; then \
459+
if [ "$(ACT_EXEC)" = "true" ]; then \
460+
echo "skip 'test-check' when using 'act_runner exec', please check it manually!"; \
461+
exit 0; \
462+
elif [ -n "$$diff" ]; then \
460463
echo "make test-backend has changed files in the source tree:"; \
461464
echo "$${diff}"; \
462465
echo "You should change the tests to create these files in a temporary directory."; \

0 commit comments

Comments
 (0)