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

Renew entire action #24

Merged
merged 5 commits into from
Nov 14, 2023
Merged

Renew entire action #24

merged 5 commits into from
Nov 14, 2023

Conversation

hyrodium
Copy link
Collaborator

@hyrodium hyrodium commented Nov 3, 2023

fix #6, fix #15.

Introduction

There are three ways to configure GitHub Actions workflows with JuliaFormatter.jl in this repository.

This repository is maintained under the julia-actions organization, so it would be nice to have well-maintained julia-format action in this repository.

Changes in this PR

code-style:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/julia-format@v2
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm thinking of releasing julia-format action v2 after merging this PR.

@domluna
Copy link
Collaborator

domluna commented Nov 14, 2023

sorry didn't see this earlier. LGTM

@domluna domluna merged commit f25e345 into julia-actions:master Nov 14, 2023
@hyrodium hyrodium deleted the renew branch November 15, 2023 03:09
@hyrodium
Copy link
Collaborator Author

@domluna Could you please release v2 of this action?

@domluna
Copy link
Collaborator

domluna commented Nov 16, 2023

ugh I completely forgot how to do that lol. I'll try to figure it out.

@hyrodium hyrodium restored the renew branch November 18, 2023 18:15
@hyrodium
Copy link
Collaborator Author

It seems you just need to release v2.0.0 from the following link.
https://github.com/julia-actions/julia-format/releases/new?marketplace=true

Official documentation:

Create a semantically tagged release. You may also publish to GitHub Marketplace with a simple checkbox. For more information, see "Managing releases in a repository" and "Publishing actions in GitHub Marketplace".

https://docs.github.com/en/actions/creating-actions/releasing-and-maintaining-actions

@hyrodium
Copy link
Collaborator Author

@domluna gentle bump

@domluna
Copy link
Collaborator

domluna commented Nov 27, 2023

i hope i did it right it should be there.

so crazy i was just working on it as you commented lol

@hyrodium
Copy link
Collaborator Author

hyrodium commented Nov 28, 2023

@domluna
Thank you for the release!

However, the version tag looks like it should be v2.0.0, but not v.2.0.0 😅.
This causes the following error.

Error: Unable to resolve action julia-actions/julia-format@v2, unable to find version v2

https://github.com/hyrodium/ElasticSurfaceEmbedding.jl/actions/runs/7013762941/job/19080415961?pr=131

@hyrodium
Copy link
Collaborator Author

Oh, I didn't know that we also need manually updating tags such as v2, v2.0. For example, julia-docdeploy has the following tagging.

commit 580a86b97cef20258d96b53292326e6258dd6859 (HEAD -> master, origin/master, origin/HEAD)
Author: David Widmann <[email protected]>
Date:   Tue Jun 27 19:10:39 2023 +0200

    Use actions/checkout@v3 in README (#30)

commit e62cc8fd639797a0c2922a437d5b1b81c4a12787 (tag: v1.3.1, tag: v1.3, tag: v1, tag: latest)
Author: Hannah Robertson <[email protected]>
Date:   Wed Mar 29 15:57:14 2023 -0400

    Change check for presence of var (#29)

commit 80c0bdcd0ea677beb566454f5290c4f803b59b64
Author: Rik Huijzer <[email protected]>
Date:   Thu May 26 11:29:48 2022 +0200

    Simplify the key setup instructions (#21)
    
    * Simplify the key setup instructions
    
    * Set `permissions: contents: write`

commit 7fe24b89212e23fda4c760589d7627fb6952b4f0
Author: Rik Huijzer <[email protected]>
Date:   Sun May 22 15:18:53 2022 +0200

    Mention how to set terminal width (#19)

commit 64236d5d0c16adbbd6db9ac6de1f0f728651bdf1
Author: Rik Huijzer <[email protected]>
Date:   Sun May 22 14:40:52 2022 +0200

    Pin example uses to v1 (#20)

commit 9c7706b8dc055756275c9535f2c6c2aed144fc46 (tag: v1.3.0)
Author: Eric Hanson <[email protected]>
Date:   Wed Apr 6 15:09:45 2022 +0200

    Make `Pkg.develop` step optional (#18)

commit e6d9f441f8569d719168a1bffbff5cae2a92192b (tag: v1.2.0, tag: v1.2)
Author: Eric Hanson <[email protected]>
:

We recommend creating releases using semantically versioned tags – for example, v1.1.3 – and keeping major (v1) and minor (v1.1) tags current to the latest appropriate commit. For more information, see "About custom actions" and "About semantic versioning.

https://docs.github.com/en/actions/creating-actions/releasing-and-maintaining-actions

@domluna
Could you please push tags v2 and v2.0?

@hyrodium
Copy link
Collaborator Author

I think it would be nice to install some GitHub action to push tags like vX and vX.Y from a release vX.Y.Z. I couldn't find an appropriate action for that, so let's push tag v2 and v2.0 manually for now.

@domluna
Copy link
Collaborator

domluna commented Nov 28, 2023

I tagged v2.0.0 after the typo-ed version v.2.0.0. Is it still not working?

@hyrodium
Copy link
Collaborator Author

Is it still not working?

Yeah, it still throwing an error like this:

Error: Unable to resolve action julia-actions/julia-format@v2, unable to find version v2

https://github.com/hyrodium/ElasticSurfaceEmbedding.jl/actions/runs/7013762941/job/19082358288?pr=131#step:1:35

It seems that we need to push tags such as v2 and v2.0 to support the following version specification.

      - uses: julia-actions/[email protected]  # works!
      - uses: julia-actions/julia-format@v2      # This is how we recommend in README. This does not work for now.
      - uses: julia-actions/[email protected]    # Some other people may want to specify a version like this.

It would be better if GitHub Actions automatically detects the latest version v2.0.0 from v2, but it seems it does not work like that.

setup-julia and julia-docdeploy have tags like v1, v1.3, v1.3.1, and latest.

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.

Recommended workflow packaged as action? (deprecation unclear) Transition to Javascript API
2 participants