diff --git a/.github/workflows/post_to_mastodon.sh b/.github/workflows/post_to_mastodon.sh index b889168..20a65a2 100644 --- a/.github/workflows/post_to_mastodon.sh +++ b/.github/workflows/post_to_mastodon.sh @@ -2,7 +2,7 @@ # Extract version from PR tag passed as environment variable if [ -z "${PR_TITLE}" ]; then # apparently unset, workflow broken? - echo "Error: 'PR_TITLE' environemnt variable is not set." + echo "Error: 'PR_TITLE' environment variable is not set." exit 1 fi version="${PR_TITLE##* }" diff --git a/.github/workflows/post_to_mastodon.yml b/.github/workflows/post_to_mastodon.yml index 7f99779..c95c7e2 100644 --- a/.github/workflows/post_to_mastodon.yml +++ b/.github/workflows/post_to_mastodon.yml @@ -14,7 +14,7 @@ jobs: post_to_mastodon: if: | github.event.pull_request.merged == true && - (startsWith(github.event.pull_request.title, 'release') || contains(github.event.pull_request.title, ' v')) + (contains(github.event.pull_request.title, 'release') || contains(github.event.pull_request.title, ' v') || contains(github.event.pull_request.title, 'version')) runs-on: ubuntu-latest steps: - uses: actions/checkout@v4