{"id":18668131,"url":"https://github.com/eonx-com/actions-opsgenie","last_synced_at":"2025-10-04T00:56:13.597Z","repository":{"id":43663064,"uuid":"224059867","full_name":"eonx-com/actions-opsgenie","owner":"eonx-com","description":"Github Actions: OpsGenie Alerting","archived":false,"fork":false,"pushed_at":"2022-02-25T03:54:19.000Z","size":18,"stargazers_count":6,"open_issues_count":3,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T06:01:41.458Z","etag":null,"topics":["actions","gitops","opsgenie"],"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/eonx-com.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}},"created_at":"2019-11-25T23:19:13.000Z","updated_at":"2025-02-12T22:55:32.000Z","dependencies_parsed_at":"2023-01-04T21:30:34.890Z","dependency_job_id":null,"html_url":"https://github.com/eonx-com/actions-opsgenie","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":"0.30434782608695654","last_synced_commit":"cc6c2df9add347b20bb82658ee974b49c0cbd050"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Factions-opsgenie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Factions-opsgenie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Factions-opsgenie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Factions-opsgenie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eonx-com","download_url":"https://codeload.github.com/eonx-com/actions-opsgenie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248498371,"owners_count":21114107,"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":["actions","gitops","opsgenie"],"created_at":"2024-11-07T08:41:29.725Z","updated_at":"2025-10-04T00:56:08.573Z","avatar_url":"https://github.com/eonx-com.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Actions: OpsGenie\n\nThis Github action can be used to generate alert to OpsGenie by generating a CURL request to the OpsGenie API.\n\n#### Required Parameters\n\n* ALIAS\n         \n  User defined identifier for the alert (this is used by OpsGenie to de-duplicate alerts)\n\n* MESSAGE       \n\n  The content of the alert message\n\n* PRIORITY      \n\n  The priority level of the alert (one of the pre-defined OpsGenie levels: P1, P2, P3, P4, P5)\n  \n* API_KEY\n\n  The OpsGenie API key (this will need to be pre-configured via the OpsGenie website)\n\n#### Optional Parameters\n\n* USE_EU_INSTANCE\n\n  Use the EU instance of OpsGenie\n    \n#### Example Usage\n\nThe following example shows how the action can be used in a Github workflow file. This sends a P5 notification on start\nof deployment, and then generates another P5 notification on successful deployment- or a P1 alert on failure\n\n```yaml\nname: Deploy Production Environment\n\non:\n  push:\n    branches:\n      - master\n\njobs:\n  deploy-production-start:\n    name: Start Notification\n    runs-on: ubuntu-latest\n    steps:\n      - name: Send OpsGenie Alert\n        uses: eonx-com/actions-opsgenie@master\n        with:\n          API_KEY: ${{ secrets.OPSGENIE_API_KEY }}\n          PRIORITY: 'P5'\n          ALIAS: 'deploy-production'\n          MESSAGE: 'Deployment to production started'\n\n  deploy-production:\n    name: Deploy (Production)\n    runs-on: ubuntu-latest\n    steps:\n      ...\n      Deployment logic here\n      ...\n\n  deploy-production-success:\n    name: Success Notification\n    needs: deploy-production\n    if: success()\n    runs-on: ubuntu-latest\n    steps:\n      - name: Send OpsGenie Alert\n        uses: eonx-com/actions-opsgenie@master\n        with:\n          API_KEY: ${{ secrets.OPSGENIE_API_KEY }}\n          PRIORITY: 'P5'\n          ALIAS: 'deploy-production'\n          MESSAGE: 'Deployment to production completed successfully'\n\n  deploy-production-failed:\n    name: Failed Notification\n    needs: deploy-production\n    if: failure()\n    runs-on: ubuntu-latest\n    steps:\n      - name: Send OpsGenie Alert\n        uses: eonx-com/actions-opsgenie@master\n        with:\n          API_KEY: ${{ secrets.OPSGENIE_API_KEY }}\n          PRIORITY: 'P1'\n          ALIAS: 'deploy-production-failed'\n          MESSAGE: 'Deployment to production failed. please review Github Actions logs'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonx-com%2Factions-opsgenie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feonx-com%2Factions-opsgenie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonx-com%2Factions-opsgenie/lists"}