Code Monkey home page Code Monkey logo

action-bump-semver's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar micnncim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

action-bump-semver's Issues

Node.js 12 actions are deprecated

What you want to add

Update to, at least, node16 in action.yml.

Why this is needed

When running a workflow with actions-ecosystem/action-bump-semver@v1:

Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions-ecosystem/action-bump-semver

Add —preid option

What you want to add

Ability to pass —preid option to server

Why this is needed

Specify a prefixed

This is online with the server documentation

https://www.npmjs.com/package/semver

--preid <identifier>
        Identifier to be used to prefix premajor, preminor,
        prepatch or prerelease version increments.

I already have a patch for this

some permissions of .git folder after run are root:root, ideally should be runner:docker

What happened

If I run this action, then I observe some newly created files in the .git/ directory have permissions of root.root.

What you expected to happen

Permissions end with user 'runner' and group 'docker', which is the default of github

This is likely because the using: 'node12' runs inside a docker container as the root user, and those permissions propagate outside the container as well.

When using other actions from https://github.com/actions-ecosystem it all works OK because everything runs as root inside docker and can write to the .git folder just fine.

When you try and run other steps that aren't in docker containers, it then breaks. For instance, if you run this github action, then do:
git fetch --depth=1

It'll complain about not having permission to write to files in the .git folder. If you look in there, some directories will have root.root as owner, others runner.docker.


Solution ideas: (not sure which is best/easiest/right answer)

  • Run the script via the docker container (somehow) as non-root, not sure if that's possible to do on github easily.
  • Just before this action completes, do: sudo chown -R $USER:$USER ./.git (probably the easiest fix)
  • Mention in the docs that users should do the chown as a step themselves if they run into permissions issues

I might take a stab at fixing this in a PR real quick

The `set-output` command is deprecated and will be disabled soon

When using actions-ecosystem/action-bump-semver@v1:

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.