The esm version of @google-cloud/tasks is incorrectly using require
to load a JSON file
#73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: invalid_link | |
on: | |
issues: | |
types: [opened, reopened] | |
jobs: | |
close: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/github-script@v7 | |
with: | |
script: | | |
const script = require('./.github/scripts/close-invalid-link.cjs') | |
await script({github, context}) |