Skip to content

Commit d3edd1d

Browse files
committed
chore(ci/cd): fail fast if no files matched for Windows build
1 parent cfc1154 commit d3edd1d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/lf-build-windows-x86_64.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
# modify the default permissions granted to the GITHUB_TOKEN
2323
permissions:
2424
contents: 'read'
25+
actions: 'read'
2526

2627
jobs:
2728
build-windows-x86_64:
@@ -97,6 +98,7 @@ jobs:
9798
with:
9899
path: '${{ env.LFMP_DIR_COMPILED }}/check-plugins/*'
99100
name: "lfmp-${{ env.LFMP_VERSION }}-${{ env.LFMP_PACKAGE_ITERATION }}.unsigned-compiled.windows.${{ env.LFMP_ARCH }}"
101+
if-no-files-found: 'error'
100102

101103
# https://github.com/SignPath/github-actions/tree/main/actions/submit-signing-request
102104
# https://about.signpath.io/documentation/trusted-build-systems/github
@@ -109,6 +111,7 @@ jobs:
109111
signing-policy-slug: 'release-signing'
110112
artifact-configuration-slug: 'compiled'
111113
github-artifact-id: '${{ steps.upload-unsigned-compiled.outputs.artifact-id }}'
114+
github-token: '${{ secrets.GITHUB_TOKEN }}'
112115
wait-for-completion: true
113116
# note: the path is always relative to GITHUB_WORKSPACE (hardcoded in the signpath action)
114117
# and will be created if it does not exist

0 commit comments

Comments
 (0)