Fix CI composite action output values

This commit is contained in:
Mattias Granlund 2023-08-17 22:12:21 +01:00
parent 65ef3522ab
commit b14f2ddde9
2 changed files with 16 additions and 1 deletions

View File

@ -5,6 +5,13 @@ inputs:
description: |
Filter by project type, must be named filter from step `changes`
default: 'all'
outputs:
frontend:
description: "Change affects front end"
value: ${{ steps.frontend.outputs.value }}
backend:
description: "Change affects back end"
value: ${{ steps.backend.outputs.value }}
runs:
using: 'composite'
steps:
@ -24,6 +31,14 @@ runs:
- '.npmrc'
- '.env.*'
- id: frontend
run: echo "value=${{ steps.changes.outputs.frontend}}" >> $GITHUB_OUTPUT
shell: bash
- id: backend
run: echo "value=${{ steps.changes.outputs.backend}}" >> $GITHUB_OUTPUT
shell: bash
- uses: pnpm/action-setup@v2
name: Install pnpm
if: ${{ inputs.runs-on == 'all' || steps.changes.outputs[inputs.runs-on] == 'true' }}

View File

@ -7,7 +7,7 @@
"dev": "vite dev",
"test": "vitest run --mode development",
"build": "vite build",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "pnpm check --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",