Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Really fix import path for .mjs files #3392

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)