Giter Site home page Giter Site logo

tclindner / sentry-releases-action Goto Github PK

View Code? Open in Web Editor NEW
38.0 5.0 16.0 12.06 MB

A GitHub action that creates releases for Sentry.io.

License: MIT License

JavaScript 100.00%
github-action sentry-io sentry-client sentry-cli releases github-releases github-actions

sentry-releases-action's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar justsanjit avatar lol768 avatar mlissner avatar natim avatar robbiet480 avatar sudkumar avatar tclindner 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

Watchers

 avatar  avatar  avatar  avatar  avatar

sentry-releases-action's Issues

Invalid repository name leads to authorization error

I'm trying to use this action, but it fails with the following error:

##[error]Command failed: /home/runner/work/_actions/tclindner/sentry-releases-action/v1.0.0/dist/sentry-cli releases set-commits bfd4135e51c9949feb732f4b12194dee3af5a2a9 --auto
error: API request failed
  caused by: sentry reported an error: You do not have permission to perform this action. (http status: 403)

I believe the issue comes from this line, where repo is hardcoded, and does not correspond to any repository integration on Sentry:

Sentry CLI warning

I got this warning today:

the default --no-rewrite will disappear. Please specify --rewrite or --no-rewrite explicitly during sourcemap upload

Maybe it's time to use the explicit flag?

On-prem Sentry

Do you support configuring the URL to point at a custom Sentry instance?

Documentation question: What permissions does the API key need?

Just working on getting this set up, and I can't find where the readme says what permissions are needed. Clarification would be great. Going to try giving just the releases permission, but I suspect iteration pain in my future.

Thanks for the useful tool.

Invalid value for '<VERSION>'

Hi Folks,

Thanks for creating this action. I'm having an issue where the version is being set to an invalid value per the error message

##[error]Command failed: /home/runner/work/_actions/tclindner/sentry-releases-action/v1.0.0/dist/sentry-cli releases new refs/heads/master
error: Invalid value for '<VERSION>': Invalid release version. Slashes and certain whitespace characters are not permitted.

I don't know if you've come across this before or have any idea what's going on. Incase it's something I've done you can see the integration at https://github.com/railto/markrailton.com/blob/master/.github/workflows/deploy.yml#L48

Thanks again for creating this and hopefully you have some idea as to what is going on.

Mark

New release

Is there any chance a new release can be made for this repo to pull in all the changes since May 2020 (date of the last release)?

Notably 1.2.0 still uses node12, which causes deprecation warnings when being ran. I can see on master this has been bumped up to node 16, along with many other dependency bumps .

Source map example

Thanks for the awesome work.

I am very new to actions. Can you please provide me an example on how I can upload source maps?

Unexpected input 'releaseNamePrefix', valid inputs are ['tagName', 'environment']

I am getting this error when trying to add release prefix

Unexpected input 'releaseNamePrefix', valid inputs are ['tagName', 'environment']

Here is my action file

name: ReleaseWorkFlow

on:
  release:
    types: [published, prereleased]

jobs:
  createSentryRelease:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@master

      - name: Create a Sentry release
        uses: tclindner/[email protected]
        env:
          SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
          SENTRY_ORG: xyz
          SENTRY_PROJECT: abc
        with:
          tagName: ${{ github.ref }}
          environment: production
          releaseNamePrefix: main-

      - name: Create a deploy for a Sentry.io release
        uses: tclindner/[email protected]
        env:
          SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
          SENTRY_ORG: xyz
          SENTRY_PROJECT: abc
        with:
          version: ${{ github.ref }}
          environment: production
          versionPrefix: main-

Is there something I am doing wrong? Please help!

error: For non git repositories explicit revisions are required

Hello! I was using that action for my github project for some time now and it recently started throwing a following error:

Tag is: [email protected]
Sentry release is: [email protected]
Error: Command failed: /home/runner/work/_actions/tclindner/sentry-releases-action/v1.2.0/dist/sentry-cli releases set-commits [email protected] --auto
error: For non git repositories explicit revisions are required

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

My config is:

name: Create a Sentry.io release
on:
  release:
    types: [published, prereleased]
jobs:
  createSentryRelease:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@master
      - name: Create a Sentry.io release
        uses: tclindner/[email protected]
        env:
          SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
          SENTRY_ORG: yyy
          SENTRY_PROJECT: xxx
        with:
          tagName: xxx@${{ github.ref }}
          environment: production

Thanks in advance for any clues!

SSL peer certificate or SSH remote key was not OK issue

Good day,

We are getting this message when using this action to create a release in sentry:

Error: Command failed: /__w/_actions/tclindner/sentry-releases-action/v1.2.0/dist/sentry-cli releases new $SENTRY_PROJECT0.1.35
error: API request failed
  caused by: [60] SSL peer certificate or SSH remote key was not OK

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

What are we missing to configure? is it a sentry issue?

Thank you,

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.