Skip to content

Commit

Permalink
ci(win): fix release commit check
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Nov 1, 2023
1 parent afc70d2 commit 2d84606
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
shell: bash
run: |
msg="$(git log -1 --no-merges --pretty=%B | head -n 1)"
if [[ "$FROM_FORK" = "true" ]] || [[ ! "$msg" =~ "^release.*" ]];
if [[ "$FROM_FORK" = "true" ]] || [[ ! "$msg" =~ ^release:.* ]];
then
echo "not a release, skipping code signing"
exit 0;
Expand All @@ -97,6 +97,7 @@ jobs:
echo "ES_TOTP_SECRET=${{ secrets.ES_TOTP_SECRET }}" >> $GITHUB_ENV
echo "CSC_LINK=${{ secrets.CERTIFICATE_WINDOWS_APPLICATION }}" >> $GITHUB_ENV
echo "CSC_KEY_PASSWORD=${{ secrets.CERTIFICATE_WINDOWS_PASSWORD }}" >> $GITHUB_ENV
echo "signing enabled and secrets loaded"
- name: Load macOS signing certificates and secrets
if: matrix.os == 'macOS-latest' && env.CERTIFICATE_MACOS_PASSWORD != null
Expand Down

0 comments on commit 2d84606

Please sign in to comment.