Skip to content

Commit

Permalink
gha. Fix getting head commit after push event
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelSinelnik committed Dec 17, 2024
1 parent 00e8157 commit a564533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: update clients

on:
push:
branches: [develop]
branches: [fix/SP-19891]
workflow_dispatch:
inputs:
title:
Expand All @@ -20,7 +20,7 @@ jobs:
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
echo "fmt_title=${{ github.event.inputs.title }}" >> "$GITHUB_OUTPUT"
else
echo "fmt_title=${{ github.event.head_commit.message }}" >> "$GITHUB_OUTPUT"
echo "fmt_title=$(${{ github.event.head_commit.message }} | head -n 1)" >> "$GITHUB_OUTPUT"
fi
update-js-client:
Expand Down

0 comments on commit a564533

Please sign in to comment.