Coder Social home page Coder Social logo

delete-stale-releases's People

Contributors

bubkoo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

delete-stale-releases's Issues

Version v1.2.3 is generating errors

The action execution is failing, and I get the following log line and then a big dump of JavaScript code.

/home/runner/work/_actions/wow-actions/delete-stale-releases/v1.2.3/dist/index.js.cache.js:14

Expected Behavior

The action executes and deletes the releases according to configuration.

Current Behavior

The execution fails, the log line mentioned above is printed together with a dump of JavaScript code.

Steps To Reproduce

  1. Create a workflow that runs on closed PRs
  2. Add the following step to a job on that workflow (where '*rc*' is a regex to match specific releases).
        - name: Delete GitHub release candidates
       id: delete-github
       uses: wow-actions/[email protected]
       with:
         key: name
         include: '*rc*'
         include_prerelease: true
         include_draft: true
         delete_tags: true
    
  3. Open and close a PR
  4. The workflow fails
Error Message & Stack Trace

Log file: action-execution-log.txt

Additional Context

I'm trying to run the action. It used to work before and it stopped working at some point.

Your Environment

Action is running on GitHub actions ubuntu-latest.
In my environment, release v1.2.1 works correctly and the issue reported here starts to happen as of release v1.2.2.

Action outputs with selected releases and tags

Thanks for this action, I haven't found another action that can do pattern matching for cleaning up releases and tags.

After cleaning up releases and tags that aren't needed anymore, I would also like to clean up other artefacts that are tagged in the same way. For example docker containers and other application packages that were generated in PRs and are not longer relevant after the PR is closed. To do that it would be awesome if this action would export the filtered releases and associated tags as outputs. There could be two lists, one with releases and one with tags.

Expected Behavior

The action makes available two outputs, one with the list of releases that were deleted from the repository, and another with the list of associated tags.

Possible Solution

Collect the lists, and then print them out using github actions output.

Additional Context

I'm not sure what else I could add, but it there's anything I will be happy to update this feature request.

error message when I try to remove releases

Hi
I would like to use your repo as part of my deployments but I am getting the next error message:

(node:1608) UnhandledPromiseRejectionWarning: HttpError: Reference does not exist
    at /home/runner/work/_actions/bubkoo/delete-stale-releases/v1.0.6/dist/index.js.cache.js:1:79927
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:1608) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1608) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I am using the next inputs:

with:
github_token: ***
keep_latest_count: 1
delete_tags: true
key: name
include_draft: true
include_prerelease: true

Can you please help me to resolve it?

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.