/
githubmirror
/
oppia
Обзор
Документация
Войти
/
githubmirror
/
oppia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
.github/actions/post-comment/action.yml
34 строки
1 KB
Sean Lip
Add pointers to instructions for what to do if CI checks fail. (#21537)
31 дек 2024, 09:04
Не верифицирован
31 дек 2024, 09:04
87dc6e2
Код
Авторство
О чём код?
name: 'Post an issue/PR comment' description: 'This action posts a comment to the GitHub issue or PR conversation thread.' inputs: owner: description: 'The owner of the repo.' required: true repo: description: 'The name of the repo containing the issue/PR.' required: true issue_number: description: 'The number of the issue/PR.' required: true message: description: 'The message to post.' required: true runs: using: composite steps: - name: Leave a comment on the PR if workflow failed uses: actions/github-script@v7 env: OWNER: ${{ inputs.owner }} REPO: ${{ inputs.repo }} ISSUE_NUMBER: ${{ inputs.issue_number }} MESSAGE: ${{ inputs.message }} with: github-token: ${{ github.token }} script: | await github.rest.issues.createComment({ repo: process.env.REPO, owner: process.env.OWNER, issue_number: process.env.ISSUE_NUMBER, body: process.env.MESSAGE });