rpm-software-management / fedora-distro-aliases

Aliases for active Fedora releases
5 stars 6 forks source link

Provide a GH action #6

Open inknos opened 8 months ago

inknos commented 8 months ago

Hi,

I would benefit from an action that would look like this:

- name: Get the correct Fedora Release from Bodhi
  uses: rpm-software-management/fedora-distro-aliases@v1
  with:
    fedora: fedora-latest

And with outputs the result of the query.

Would you consider something like this?

Thanks

FrostyX commented 7 months ago

Hello @inknos, that is an interesting idea.

Can you please share any use-cases that you would have for this?

inknos commented 7 months ago

Sure, in dnf team, we have COPR builds and tests run directly via GH workflows and actions. Most of the time, when a new Fedora is released, we need to update our GH actions to the latest fedora. This manual update can be avoided conveniently in a container using the fedora:latest image but not conveniently for other instances.

For example here we do some magic to get the correct fedora version like in the Dockerfile.

So, an action would get the right fedora version in a few lines and I would not have to maintain the Fedora latest version.

FrostyX commented 7 months ago

Makes sense, thank you.

I will discuss this with @praiskup and @nikromen, who have better knowledge of GitHub Actions than me, to see what it would entail to implement this feature.

praiskup commented 2 weeks ago

I do not recall discussing this. Adding to our kanban.