Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Really fix import path for `.mjs` files (#3392)
Dhruv Bhanushali7c1f2f5ffe67
diff --git a/.github/workflows/issue_automations.yml b/.github/workflows/issue_automations.ymlindex d09a7a313..67c62bf24 100644--- a/.github/workflows/issue_automations.yml+++ b/.github/workflows/issue_automations.yml@@ -22,12 +22,6 @@ jobs:- name: Checkout repositoryuses: actions/checkout@v4- - name: Setup CI env- uses: ./.github/actions/setup-env- with:- setup_python: false- install_recipe: node-install-- name: Perform issue automationsuses: actions/github-script@v7env:@@ -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)diff --git a/.github/workflows/pr_automations.yml b/.github/workflows/pr_automations.ymlindex c0beb277a..a445ba3b5 100644--- a/.github/workflows/pr_automations.yml+++ b/.github/workflows/pr_automations.yml@@ -37,12 +37,6 @@ jobs:- name: Checkout repositoryuses: 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@@ -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)