Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename push_gem.yaml to release.yaml and update dependent actions. #60

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

myronmarston
Copy link
Collaborator

I think "release" is a more natural name for this workflow as it cuts a release. (I don't usually here people refer to that as "pushing a gem").

In addition, I've updated all dependent actions to the latest versions to try to fix a failure I just got on my last attempt at running it:

Run ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49
  with:
    working-directory: config/release
    bundler-cache: true
    ruby-version: ruby
Error: The current runner (ubuntu-24.04-x64) was detected as self-hosted because the platform does not match a GitHub-hosted runner image (or that image is deprecated and no longer supported).
In such a case, you should install Ruby in the $RUNNER_TOOL_CACHE yourself, for example using https://github.com/rbenv/ruby-build
You can take inspiration from this workflow for more details: https://github.com/ruby/ruby-builder/blob/master/.github/workflows/build.yml
$ ruby-build 3.3.1 /opt/hostedtoolcache/Ruby/3.3.1/x64
Once that completes successfully, mark it as complete with:
$ touch /opt/hostedtoolcache/Ruby/3.3.1/x64.complete
It is your responsibility to ensure installing Ruby like that is not done in parallel.

As per ruby/setup-ruby#595, it appears that updating the version of this action will fix the error. While I'm at it I went ahead and updated the others, too.

I think "release" is a more natural name for this workflow as it cuts a release.
(I don't usually here people refer to that as "pushing a gem").

In addition, I've updated all dependent actions to the latest versions to try
to fix a failure I just got on my last attempt at running it:

```
Run ruby/setup-ruby@cacc9f1
  with:
    working-directory: config/release
    bundler-cache: true
    ruby-version: ruby
Error: The current runner (ubuntu-24.04-x64) was detected as self-hosted because the platform does not match a GitHub-hosted runner image (or that image is deprecated and no longer supported).
In such a case, you should install Ruby in the $RUNNER_TOOL_CACHE yourself, for example using https://github.com/rbenv/ruby-build
You can take inspiration from this workflow for more details: https://github.com/ruby/ruby-builder/blob/master/.github/workflows/build.yml
$ ruby-build 3.3.1 /opt/hostedtoolcache/Ruby/3.3.1/x64
Once that completes successfully, mark it as complete with:
$ touch /opt/hostedtoolcache/Ruby/3.3.1/x64.complete
It is your responsibility to ensure installing Ruby like that is not done in parallel.
```

As per ruby/setup-ruby#595, it appears that updating
the version of this action will fix the error. While I'm at it I went ahead
and updated the others, too.
Copy link
Collaborator

@BrianSigafoos-SQ BrianSigafoos-SQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@myronmarston myronmarston merged commit 26b7c79 into main Dec 10, 2024
13 checks passed
@myronmarston myronmarston deleted the myron/update-release-action branch December 10, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants