fix: trigger ci run if taskfile changes + split basepath env variable… (#27)
fix: trigger ci run if taskfile changes + split basepath env variables in taskfile
This commit is contained in:
parent
172d70f8d5
commit
62cb0955d5
3 changed files with 7 additions and 7 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "be_changed=true" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
if [ -n "$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} -- ./.github)" ]
|
||||
if [ -n "$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} -- ./.github ./Taskfile*.yml)" ]
|
||||
then
|
||||
echo "fe_changed=true" >> "$GITHUB_OUTPUT"
|
||||
echo "be_changed=true" >> "$GITHUB_OUTPUT"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
version: '3'
|
||||
|
||||
env:
|
||||
BASE_PATH: "/{{ .TASKFILE_DIR }}/backend"
|
||||
VENV_PATH: "{{ .BASE_PATH }}/.venv"
|
||||
BE_BASE_PATH: "/{{ .TASKFILE_DIR }}/backend"
|
||||
VENV_PATH: "{{ .BE_BASE_PATH }}/.venv"
|
||||
VENV_BIN: "{{ .VENV_PATH }}/bin"
|
||||
VENV_ACTIVATE: "{{ .VENV_BIN }}/activate"
|
||||
DOTENV: "{{ .BASE_PATH }}/.env"
|
||||
|
@ -13,7 +13,7 @@ tasks:
|
|||
cmds:
|
||||
- . script/bootstrap
|
||||
sources:
|
||||
- "{{ .BASE_PATH }}/*.in"
|
||||
- "{{ .BE_BASE_PATH }}/*.in"
|
||||
generates:
|
||||
- "{{ .VENV_PATH }}/*"
|
||||
dir: backend
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
version: '3'
|
||||
|
||||
env:
|
||||
BASE_PATH: "/{{ .TASKFILE_DIR }}/frontend"
|
||||
FE_BASE_PATH: "/{{ .TASKFILE_DIR }}/frontend"
|
||||
|
||||
tasks:
|
||||
bootstrap:
|
||||
internal: true
|
||||
cmd: . script/bootstrap
|
||||
sources:
|
||||
- "{{ .BASE_PATH }}/yarn.lock"
|
||||
- "{{ .FE_BASE_PATH }}/yarn.lock"
|
||||
generates:
|
||||
- "{{ .BASE_PATH }}/.yarn/*"
|
||||
- "{{ .FE_BASE_PATH }}/.yarn/*"
|
||||
dir: frontend
|
||||
start:
|
||||
desc: "Starts the frontend application."
|
||||
|
|
Reference in a new issue