diff --git a/CHANGELOG.md b/CHANGELOG.md index b2ff5d0..3d7b7f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. diff --git a/README.md b/README.md index 6247e39..15c0853 100644 --- a/README.md +++ b/README.md @@ -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/action-pagerduty-alert@1.0.1 + uses: Entle/action-pagerduty-alert@1.0.2 with: pagerduty-integration-key: '${{ secrets.PAGERDUTY_INTEGRATION_KEY }}' pagerduty-dedup-key: github_workflow_failed @@ -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/action-pagerduty-alert@1.0.1 + uses: Entle/action-pagerduty-alert@1.0.2 with: pagerduty-integration-key: '${{ secrets.PAGERDUTY_INTEGRATION_KEY }}' pagerduty-dedup-key: github_workflow_failed diff --git a/index.js b/index.js index 544a460..5922d17 100644 --- a/index.js +++ b/index.js @@ -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 diff --git a/package.json b/package.json index 2ea31ce..5d5d9e8 100644 --- a/package.json +++ b/package.json @@ -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",