From 8f119bffb049fe8fc4718dfa5d989b30e47f3f05 Mon Sep 17 00:00:00 2001 From: gyyc233 <1056616678@qq.com> Date: Fri, 6 Sep 2024 17:05:46 +0800 Subject: [PATCH] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 59ec2c8..4391e50 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -5,3 +5,12 @@ on: types: [opened] permissions: pull-requests: write +jobs: + build: + name: Post welcome comment + runs-on: ubuntu-latest + steps: + - run: gh pr comment $PR_URL --body "Welcome to the repository!" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }}