How to specifiy 1.8-beta in CI.yaml

I have the following in my CI.yaml file:

  matrix:
    version:
      - '1.6'
      - '1'
      - 'nightly'
    os:
      - ubuntu-latest

But how can I specify testing on 1.8-beta instead of ‘nightly’?

See julia-actions/setup-julia#julia-versions.

So ~1.8.0-beta3 would pick up 1.8.0-beta3 and any newer 1.8.x version including the release candidates?