github-action icon indicating copy to clipboard operation
github-action copied to clipboard

tailscale/github-action@v1 is old

Open milkcocoa opened this issue 3 years ago • 4 comments

I use this action with @v1 as follows.

- uses: tailscale/github-action@v1
  with:
    authkey: ${{ secrets.TAILSCALE_AUTHKEY }}

GitHub actions runner seems to use the old tailscale 1.14 version. Is this behavior intended?

milkcocoa avatar Jul 23 '22 03:07 milkcocoa

We applied the v1 tag to a rev which used 1.14. You can set a version input argument to control the Tailscale app version to use, if desired.

DentonGentry avatar Jul 23 '22 04:07 DentonGentry

Thanks. So, you don't have any plan to release minor versions to update the tailsscale version, right?

milkcocoa avatar Jul 23 '22 04:07 milkcocoa

It just seemed superfluous to add a v2, v3, v4, etc.

  • If you want to automatically get new versions of the client periodically, don't specify a tag or hash at all and you'll get whatever main updates to.
  • If you tie it to v1 or to a git hash, you'll get that version of the github action forever.
  • If you want to control the Tailscale client version used and don't want to let the action use main, then pass in a version argument to specify the client version to use.

DentonGentry avatar Jul 23 '22 04:07 DentonGentry

Thanks, but I'm talking about the minor version instead of the major version, so when v1.0.1 (this is a patch version) or v1.1 is released with the latest version of tailscale, I can automatically track it with @v1.

But I don't have any strong reason to use the latest tailscale version, so if tailscale doesn't have any issue to use the older versions, I have no problem with that.

milkcocoa avatar Jul 23 '22 05:07 milkcocoa

As funny as it sounds, GitHub recommends moving git tags for new releases. From https://docs.github.com/en/actions/creating-actions/about-custom-actions#using-tags-for-release-management

Move the major version tag (such as v1, v2) to point to the Git ref of the current release.

I would prefer this action to behave like other actions, even if it is not how git tags should be used “normally”.

AlekSi avatar Mar 07 '23 03:03 AlekSi

We are working on implementing OAuth client support in the action, which will be a v2 tag.

DentonGentry avatar Mar 07 '23 03:03 DentonGentry

Hmm, as my English is likely to be poor, there might be misunderstanding, but I was not talking about the major version releases in this thread.

milkcocoa avatar Mar 07 '23 03:03 milkcocoa

If you tie it to v1 or to a git hash, you'll get that version of the github action forever

What I tried to say is that this is not how GitHub Actions typically work. If one uses actions/checkout@v3, they will not get that version of the action forever. Instead, they will get the latest v3.y.z. And this is achived my moving git tag: https://github.com/actions/checkout/tags – note that currently v3 and v3.3.0 point to the same commit, but v3.2.0 and older tags are still there.

AlekSi avatar Mar 07 '23 04:03 AlekSi