google_form #66
This file contains hidden or 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: Google Form Issue | |
| on: | |
| repository_dispatch: | |
| types: [google_form] | |
| permissions: | |
| issues: write | |
| contents: read | |
| jobs: | |
| create-issue: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Open issue with form response | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const payload = context.payload.client_payload; | |
| const title = `Form response – ${payload.filename}`; | |
| const body = [ | |
| 'Google Formに辞書追加のリクエストがありました。対応を検討してください。', | |
| '', | |
| '```', | |
| payload.content, | |
| '```' | |
| ].join('\n'); | |
| await github.rest.issues.create({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| title, | |
| body | |
| }); |