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

chore: Update to use Node20 version of Actions #4787

Merged
merged 3 commits into from May 17, 2024
Merged

Conversation

moduli
Copy link
Collaborator

@moduli moduli commented May 9, 2024

This PR updates some GitHub Actions to use a Node20 version of the Action in order to avoid deprecation warnings.

@moduli moduli added pr/no-milestone Ignores the Milestone Check backport/0.16.x and removed pr/no-milestone Ignores the Milestone Check labels May 9, 2024
@moduli moduli added this to the 0.16.x milestone May 9, 2024
Comment on lines -188 to -191
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: ${{ env.PKG_NAME }}_${{ needs.set-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
path: out/${{ env.PKG_NAME }}_${{ needs.set-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

upload-artifact-v4 adds a check where you can't upload something if it already exists. It looks like actions-go-build already has an upload step, so we're removing the step here.

@@ -27,7 +27,7 @@ jobs:
with:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: be89ad434792280ebaa4d982ac72ba548b6f7095
ref: 3e07b3b88b3984f28067a76dce5a052f0c5d3c73
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This isn't sufficient. That action still hasn't been updated to use Node20. I've posted an issue in that repo, but not sure if there are alternate paths here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

TBH the milestone checker has been broken for a while, (it never updates once a milestone has been set for me), I think we can retire it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cc: @jefferai @tmessi Any opinions?

Copy link
Member

Choose a reason for hiding this comment

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

Can we investigate why it isn't working? Perhaps it needs additional types of events so that it triggers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok. I think I addressed both things

@moduli moduli marked this pull request as ready for review May 9, 2024 17:45
@moduli moduli requested a review from a team as a code owner May 9, 2024 17:45
@moduli
Copy link
Collaborator Author

moduli commented May 9, 2024

@calcaide Just to double-check... that seems like a separate effort? I was only looking at node versions used in various github actions, whereas Cameron's work looks to be updating the application itself?

@calcaide
Copy link
Collaborator

calcaide commented May 9, 2024

@calcaide Just to double-check... that seems like a separate effort? I was only looking at node versions used in various github actions, whereas Cameron's work looks to be updating the application itself?

@moduli I deleted my messare right away, this is my bad, for some reason I though this PR was affecting boundary-ui but it does to boundary. You are totally right, this is a separate effort, sorry for the confusion here!

Copy link
Collaborator

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

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

Thanks for your hard work on this!

@@ -27,7 +27,7 @@ jobs:
with:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: be89ad434792280ebaa4d982ac72ba548b6f7095
ref: 3e07b3b88b3984f28067a76dce5a052f0c5d3c73
Copy link
Collaborator

Choose a reason for hiding this comment

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

TBH the milestone checker has been broken for a while, (it never updates once a milestone has been set for me), I think we can retire it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to self: If we keep this workflow, we should update the node reference node-version: '16.x'

@moduli moduli removed this from the 0.16.x milestone May 17, 2024
@moduli moduli added pr/no-milestone Ignores the Milestone Check and removed pr/no-milestone Ignores the Milestone Check labels May 17, 2024
@moduli moduli modified the milestone: 0.16.x May 17, 2024
@moduli moduli added the pr/no-milestone Ignores the Milestone Check label May 17, 2024
@moduli moduli removed the pr/no-milestone Ignores the Milestone Check label May 17, 2024
@moduli moduli added this to the 0.16.x milestone May 17, 2024
@moduli moduli added the pr/no-milestone Ignores the Milestone Check label May 17, 2024
@moduli moduli removed this from the 0.16.x milestone May 17, 2024
@moduli moduli merged commit 6eded67 into main May 17, 2024
65 of 68 checks passed
@moduli moduli deleted the moduli-actions-node20 branch May 17, 2024 17:01
moduli added a commit that referenced this pull request May 17, 2024
* chore: Update to use Node20 version of Actions

* CR: Add additional triggers to milestone checker

* CR: Remove use of third-party action

(cherry picked from commit 6eded67)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/0.16.x pr/no-milestone Ignores the Milestone Check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants