Skip to content

Commit

Permalink
Really fix import path for .mjs files (#3392)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Nov 23, 2023
1 parent 342bd40 commit 7c1f2f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/issue_automations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup CI env
uses: ./.github/actions/setup-env
with:
setup_python: false
install_recipe: node-install

- name: Perform issue automations
uses: actions/github-script@v7
env:
Expand All @@ -36,5 +30,5 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { main } = await import('./automations/js/src/project_automation/issues.mjs')
const { main } = await import('${{ github.workspace }}/automations/js/src/project_automation/issues.mjs')
await main(github, context)
8 changes: 1 addition & 7 deletions .github/workflows/pr_automations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup CI env
uses: ./.github/actions/setup-env
with:
setup_python: false
install_recipe: node-install

# This step was copied from the GitHub docs.
# Ref: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
- name: Download artifact
Expand Down Expand Up @@ -76,5 +70,5 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { main } = await import('./automations/js/src/project_automation/prs.mjs')
const { main } = await import('${{ github.workspace }}/automations/js/src/project_automation/prs.mjs')
await main(github)

0 comments on commit 7c1f2f5

Please sign in to comment.