diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 256b2e9..e018781 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,11 +1,9 @@ -name: Python application +name: CI on: push: branches: - '**' - pull_request: - branches: [ "main" ] workflow_dispatch: permissions: diff --git a/.github/workflows/pr-comment.yaml b/.github/workflows/pr-comment.yaml new file mode 100644 index 0000000..76dd9b1 --- /dev/null +++ b/.github/workflows/pr-comment.yaml @@ -0,0 +1,20 @@ +name: Comment on PR + +on: + pull_request: + branches: [ "main" ] + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v7 + with: + github-token: ${{secrets.GHA_PRS}} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '👋 Thanks for reporting!' + })