phpstan-webmozart-assert icon indicating copy to clipboard operation
phpstan-webmozart-assert copied to clipboard

Toot action doesn't seem to work anymore

Open herndlm opened this issue 1 year ago • 5 comments

Just for the record and since reporting on Mastodon is not optimal I guess :)

But see https://phpc.social/@herndlm/112179238683506275 for reference

didn't work the last 2 times with the same error that looked like some base URL config is missing or so. and it seems to work for some other repos.

  • https://github.com/phpstan/phpstan-webmozart-assert/actions/runs/8481027472
  • https://github.com/phpstan/phpstan-webmozart-assert/actions/runs/8491335129

herndlm avatar Apr 02 '24 09:04 herndlm

Feel free to look into why it works elsewhere and not here. The secrets should be org-wide.

ondrejmirtes avatar Apr 02 '24 09:04 ondrejmirtes

interesting, yeah, the config is basically the same in other repos. I found 2 issues with the same error:

  • https://github.com/cbrgm/mastodon-github-action/issues/48 (MASTODON_URL was missing the protocol) - but I can see that it's not missing here
  • https://github.com/cbrgm/mastodon-github-action/issues/55 (secrets: inherit was missing for shared workflows) - I don't know github actions well enough yet and am not sure if this applies here.

herndlm avatar Apr 03 '24 08:04 herndlm

Hi there, please double check the MASTODON_URL secret. Try to add your instance url prefixed with https:// and run the workflow again. This will probably fix the issue.

cbrgm avatar May 08 '24 17:05 cbrgm

Sorry for the troubles!

cbrgm avatar May 08 '24 17:05 cbrgm

I don't think there's anything wrong with my configuration: https://github.com/phpstan/phpstan-webmozart-assert/blob/983a1a7a882daa438a0d37996426f82944f10102/.github/workflows/release-toot.yml#L20

Did something change on Mastodon's side or in the action itself?

In some repositories the exact same values work correctly: https://github.com/phpstan/phpstan-doctrine/blob/4b66f5c996865a6085983cc90b5c8a242d1959e7/.github/workflows/release-toot.yml#L20 (https://github.com/phpstan/phpstan-doctrine/actions/workflows/release-toot.yml)

ondrejmirtes avatar May 09 '24 06:05 ondrejmirtes