You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
687 B

2 years ago
2 years ago
2 years ago
  1. name: "Update issues"
  2. on:
  3. issues:
  4. types: [opened]
  5. jobs:
  6. comment:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/github-script@v6
  10. with:
  11. script: |
  12. github.rest.issues.createComment({
  13. issue_number: context.issue.number,
  14. owner: context.repo.owner,
  15. repo: context.repo.repo,
  16. body: '
  17. Please upgrade to the latest code and try again first. Maybe it's already fixed.
  18. `acme.sh --upgrade`
  19. If it's still not working, please provode the log with `--debug 2`, otherwise, nobody can help you.'
  20. })