Skip to content

customize workflows' options #54

customize workflows' options

customize workflows' options #54

name: Build Application
on:
push:
branches-ignore:
- "renovate/**"
paths-ignore:
- "**.md"
- "**/LICENSE"
- "flake.lock"
- "packages/**"
- ".github/ISSUE_TEMPLATE/**"
- ".markdownlint**"
pull_request:
paths-ignore:
- "**.md"
- "**/LICENSE"
- "flake.lock"
- "packages/**"
- ".github/ISSUE_TEMPLATE/**"
- ".markdownlint**"
workflow_dispatch:
inputs:
build_type:
description: 'Build type'
required: true
default: ${{ env.default_build_type }}

Check failure on line 27 in .github/workflows/trigger_builds.yml

View workflow run for this annotation

GitHub Actions / Build Application

Invalid workflow file

The workflow is not valid. .github/workflows/trigger_builds.yml (Line: 27, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.default_build_type .github/workflows/trigger_builds.yml (Line: 40, Col: 27): Unrecognized named-value: 'env'. Located at position 1 within expression: env.default_build_type
type: choice
options:
- Debug
- Release
- RelWithDebInfo
- MinSizeRel
env:
default_build_type: Release
jobs:
build_debug:
env:
default_build_type: ${{ env.default_build_type }}
name: Build Debug
uses: ./.github/workflows/build.yml
with:
build_type: ${{ inputs.build_type || env.default_build_type }}
is_qt_cached: true
secrets:
SPARKLE_ED25519_KEY: ${{ secrets.SPARKLE_ED25519_KEY }}
WINDOWS_CODESIGN_CERT: ${{ secrets.WINDOWS_CODESIGN_CERT }}
WINDOWS_CODESIGN_PASSWORD: ${{ secrets.WINDOWS_CODESIGN_PASSWORD }}
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PRIVATE_KEY_ID: ${{ secrets.GPG_PRIVATE_KEY_ID }}