Is it possible to use the latest version of a published GitHub Action from the Marketplace in a workflow?
This would be nice if it was somehow possible:
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@latest"
For example, with a npm
package you can do npm install node@latest
to use the latest version of that package.
On an action's page, when you click on "Use latest version", it shows the following dialogue, where the version number is hard-coded:
CodePudding user response:
The syntax is {owner}/{repo}@{ref}
so you can point to the master
branch as follow:
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@master"
BTW In case of a major update, any breaking changes could stop your workflow, so I would suggest to tag to a major version, for example @4
:
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@v4"