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:
Marc 2023-08-19 11:33:18 -04:00 committed by GitHub
parent 172d70f8d5
commit 62cb0955d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -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"

View file

@ -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

View file

@ -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."