sclorg / testing-farm-as-github-action

GitHub Action to execute tests by Testing Farm and update Pull Request status
MIT License
13 stars 11 forks source link

Unable to resolve action `sclorg/testing-farm-as-github-action@v1` #22

Closed jamacku closed 2 years ago

jamacku commented 2 years ago

Currently documentation shows an example of using testing-farm-as-github-action as sclorg/testing-farm-as-github-action@v1. But since there is no tag v1 this will resolve with following error:

Error: Unable to resolve action `sclorg/testing-farm-as-github-action@v1`, unable to find version `v1`

As noted in https://github.com/sclorg/testing-farm-as-github-action/pull/19#issue-1123969843 you need to add tag v<major-version> in order to use it like that. If not, users need to reference the exact minor version, at the moment it's v1.1 and then setup dependabot to automatically look for updates.


From Docs:

We recommend creating releases using semantically versioned tags – for example, v1.1.3 – and keeping major (v1) and minor (v1.1) tags current to the latest appropriate commit. For more information, see "About custom actions" and "About semantic versioning".

phracek commented 2 years ago

Thanks for this issue.

I have to create an automation, how to do it as soon as PR is merged.

phracek commented 2 years ago

The tag v1 is still moving manually, but trying to find out an action for it.

jamacku commented 2 years ago

@phracek You can try something like this: https://github.com/redhat-plumbers-in-action/differential-shellcheck/blob/main/.github/workflows/publish-release.yml

Just exclude release-drafter action. Then when you publish new minor tag, major tag will get automatically updated.

phracek commented 2 years ago

See how publish-release.yml works. Issue https://github.com/release-drafter/release-drafter/issues/1073

jamacku commented 2 years ago

sclorg/testing-farm-as-github-action@v1 is now working