PRQL / homebrew-prql

2 stars 2 forks source link

Versioning system #1

Closed roG0d closed 2 years ago

roG0d commented 2 years ago

Through GitHub Actions, create a workflow that enables to keeps updated the formula with the latest stable release.

The solution would go as:

  1. A new release on prql/prql is made ---> Trigger a workflow on: release that sends a workflow_dispatch.
    1. on prql/homebrew-prql ---> There's a workflow listening for the workflow_dispatch event. this workflow would change the .tar URL and the version from the Formula
roG0d commented 2 years ago

For now, It's working just the beginning of the solution:

roG0d commented 2 years ago

The version and URL inputs are working fine between workflows:

roG0d commented 2 years ago

The version and URL tags are commited to prql.rb as expected:

For now, there's a bug on the release.yml that triggers 4 workflows on the prql repo. Even with this bug, update.yml behaves works properly as no change is performed on the prql.rb file.

roG0d commented 2 years ago

The SHA256 is a field to be updated too, this has been achieved on commit c830e2a6e5a2bfe2d88c6531e968cd610f462312 The idea for this has been:

max-sixty commented 2 years ago

Closing as completed!