{"id":20740926,"url":"https://github.com/rollbar/github-deploy-action","last_synced_at":"2025-04-06T08:15:45.256Z","repository":{"id":51062679,"uuid":"252406462","full_name":"rollbar/github-deploy-action","owner":"rollbar","description":"Github action to notify deploys to Rollbar","archived":false,"fork":false,"pushed_at":"2025-01-07T21:55:42.000Z","size":162,"stargazers_count":53,"open_issues_count":6,"forks_count":13,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-03-30T06:06:30.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rollbar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-02T09:06:37.000Z","updated_at":"2025-03-21T18:58:00.000Z","dependencies_parsed_at":"2025-01-20T21:10:49.944Z","dependency_job_id":"6a111f3f-635c-4988-933d-460619dffaf2","html_url":"https://github.com/rollbar/github-deploy-action","commit_stats":{"total_commits":29,"total_committers":11,"mean_commits":"2.6363636363636362","dds":0.7241379310344828,"last_synced_commit":"a147015fcdc604afb8c9253d7a0a8e353619b64d"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollbar%2Fgithub-deploy-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollbar%2Fgithub-deploy-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollbar%2Fgithub-deploy-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollbar%2Fgithub-deploy-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rollbar","download_url":"https://codeload.github.com/rollbar/github-deploy-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247451666,"owners_count":20940944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T06:31:15.663Z","updated_at":"2025-04-06T08:15:45.228Z","avatar_url":"https://github.com/rollbar.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub deploy action\n\n![CI](https://github.com/rollbar/github-deploy-action/workflows/CI/badge.svg)\n\nA GitHub action that notifies deploys to [Rollbar](https://rollbar.com).\n\n\n## Usage\n\nThis action requires that you set the `ROLLBAR_ACCESS_TOKEN` environment variable with a token that must have the [`post_server_item`](https://docs.rollbar.com/reference/create-item) scope.\nYou can find it under your project's settings in the Project access token section.\n\nWhen notifiying deploys in two stages, for sending to Rollbar when a deploy starts and the status of its result (succeeded or failed ) you need\nalso to set the `DEPLOY_ID` environment variable with the ouput of the previous step.\n\nOptionally set `ROLLBAR_USERNAME` environment variable, usernames can be found at:\n\u003e https://rollbar.com/settings/accounts/YOUR_TEAM/members/\n\n\u003e NOTE: When using [`github.actor`](https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context) as the `ROLLBAR_USERNAME` ensure the username in Rollbar matches your GitHub username. If your Rollbar usernames don't match GitHub usernames, you may want to instead set the `local_username` input.\n\n\n### Inputs\n\n| Input           | Required  | Default      | Description                                      |\n| --------------- | --------- | ------------ | ------------------------------------------------ |\n| `environment`   | `true`    |              | The environment where the deploy is being done.  |\n| `version`       | `true`    |              | The version being deployed.                      |\n| `status`        | `false`   | `succeeded`  | The status of the deploy.                        |\n| `source_maps`   | `false`   |              | JS source map files.                             |\n| `minified_urls` | `false`   |              | Minified URLs linked to source maps above        |\n| `local_username`| `false`   |              | Username of the deploying user. Alternative to setting ROLLBAR_USERNAME |\n\n### Outputs\n\n| Input        | Description           |\n| ------------ | --------------------- |\n| `deploy_id`  | The id of the deploy. |\n\n\n### Example\n\n```yaml\nsteps:\n  - name: Notify deploy to Rollbar\n    uses: rollbar/github-deploy-action@2.1.2\n    id: rollbar_deploy\n    with:\n      environment: 'production'\n      version: ${{ github.sha }}\n    env:\n      ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }}\n      ROLLBAR_USERNAME: ${{ github.actor }}\n```\n\n\n### Example with deploy update\n\n```yaml\nsteps:\n  - name: Notify start deploy to Rollbar\n    uses: rollbar/github-deploy-action@2.1.2\n    id: rollbar_pre_deploy\n    with:\n      environment: 'production'\n      version: ${{ github.sha }}\n      status: 'started'\n    env:\n      ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }}\n      ROLLBAR_USERNAME: ${{ github.actor }}\n\n...\n\nsteps:\n  - name: Notify finish deploy to Rollbar\n    uses: rollbar/github-deploy-action@2.1.2\n    id: rollbar_post_deploy\n    with:\n      environment: 'production'\n      version: ${{ github.sha }}\n      status: 'succeeded'\n    env:\n      ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }}\n      ROLLBAR_USERNAME: ${{ github.actor }}\n      DEPLOY_ID: ${{ steps.rollbar_pre_deploy.outputs.deploy_id }}\n```\n### Example with JS Source Map\n```yaml\njobs:\n  # This workflow builds source maps\n  build:\n    - uses: actions/checkout@v2\n    - name: npm run build\n      run: npm run build --prefix templates/static/\n    - uses: actions/upload-artifact@v2\n      with:\n        name: bundle.js.map\n        path: public/bundle.js.map\n    - uses: actions/upload-artifact@v2\n      with:\n        name: bundle2.js.map\n        path: public/bundle2.js.map\n  # This workflow deploys source maps to Rollbar\n  deploy:\n    needs: build\n    steps:\n    - uses: actions/checkout@v2\n    - uses: actions/download-artifact@v2\n      with:\n        name: bundle.js.map\n    - uses: actions/download-artifact@v2\n      with:\n        name: bundle2.js.map\n    - name: Rollbar deploy\n      uses: rollbar/github-deploy-action@2.1.2\n      with:\n        environment: production\n        version: ${{ github.sha }}\n        status: succeeded\n        source_maps: bundle.js.map bundle2.js.map\n        minified_urls: https://www.example.com/public/bundle.js https://www.example.com/public/bundle2.js\n      env:\n          ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollbar%2Fgithub-deploy-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frollbar%2Fgithub-deploy-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollbar%2Fgithub-deploy-action/lists"}