It seems like this new check is not working correctly. From what I can tell from the docs github is always available.
I know for sure that it works in the code snippet below because I've had it for years.
- name: Build binary
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
version: v2.5.0
args: ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean