Skip to content

Commit

Permalink
Fix module import
Browse files Browse the repository at this point in the history
  • Loading branch information
JohJonker committed Nov 20, 2024
1 parent 6662d40 commit df27b87
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 1.0.2

- Fix module import.

## 1.0.1

- Fix missing ESM config in `package.json`.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Adding this to your `steps` will send a PagerDuty alert if the job fails. It is
```yaml
- name: Send PagerDuty alert on failure
if: ${{ failure() }}
uses: Entle/[email protected].1
uses: Entle/[email protected].2
with:
pagerduty-integration-key: '${{ secrets.PAGERDUTY_INTEGRATION_KEY }}'
pagerduty-dedup-key: github_workflow_failed
Expand All @@ -52,7 +52,7 @@ Optionally, add the below step after the one above to resolve the alert if a sub
```yaml
- name: Resolve PagerDuty alert on success
if: ${{ !failure() }}
uses: Entle/[email protected].1
uses: Entle/[email protected].2
with:
pagerduty-integration-key: '${{ secrets.PAGERDUTY_INTEGRATION_KEY }}'
pagerduty-dedup-key: github_workflow_failed
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import core from '@actions/core';
import sendAlert from './lib/send-alert';
import prepareAlert from './lib/prepare-alert';
import sendAlert from './lib/send-alert.js';
import prepareAlert from './lib/prepare-alert.js';

try {
const pagerDutyintegrationKey = core.getInput('pagerduty-integration-key'); // Required
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "action-pagerduty-alert",
"version": "1.0.1",
"version": "1.0.2",
"description": "GitHub Action to send a critical PagerDuty alert",
"type": "module",
"exports": "./index.js",
Expand Down

0 comments on commit df27b87

Please sign in to comment.