Skip to content

Commit

Permalink
add support for 'workflow_dispatch'
Browse files Browse the repository at this point in the history
  • Loading branch information
ziodave committed Jul 10, 2024
1 parent 5c799be commit 8d7d13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ get_version() {
grep -E '^ \* Version:\s+(\d+\.\d+\.\d+)$' src/wordlift.php | grep -oE '(\d+\.\d+\.\d+)$'
}

if [[ 'src/readme.txt' == "$(git diff HEAD^ HEAD --name-only)" ]]; then
if [[ 'src/readme.txt' == "$(git diff HEAD^ HEAD --name-only)" || "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
echo 'readme.txt has been updated, pushing...'

version="$(get_version)"
Expand Down

0 comments on commit 8d7d13e

Please sign in to comment.