From 5b763d16fc2e4420cf3a5663f3e6cf57bc36fd99 Mon Sep 17 00:00:00 2001 From: The C# Academy <108711476+TheCSharpAcademy@users.noreply.github.com> Date: Sat, 22 Aug 2026 16:32:44 +1000 Subject: [PATCH] Create project-submission.yml --- .github/workflows/project-submission.yml | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/project-submission.yml diff --git a/.github/workflows/project-submission.yml b/.github/workflows/project-submission.yml new file mode 100644 index 00000000..62402a3b --- /dev/null +++ b/.github/workflows/project-submission.yml @@ -0,0 +1,37 @@ +# This is a basic workflow to help you get started with Actions +name: Project Submission + +# Controls when the workflow will run +on: + pull_request: + branches: [ "main" ] + types: [opened] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +permissions: + pull-requests: write + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Comment on PR + uses: actions/github-script@v7 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issues.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `## 🚀 Project Submitted! + + Thanks for submitting your project! I will review it soon. + + 📋 **Please check the dashboard** to make sure the project was submitted successfully. + + ⚠️ If it's not there, submit it manually using the URL for this PR.` + })